Skip to content

Images imported from slack are not showing the preview. #10278

@stevelacerda

Description

@stevelacerda

Description:

When trying to import Slack messages, I got the following error:

rocketchat_1  | Exception in callback of async function: Error: File exceeds allowed size of -1 B. [error-file-too-large]
rocketchat_1  |     at Filter.validateFileUpload [as onCheck] (/app/bundle/programs/server/packages/rocketchat_file-upload.js:122:13)
rocketchat_1  |     at Filter.check (/app/bundle/programs/server/packages/jalik_ufs.js:595:53)
rocketchat_1  |     at FileUploadClass.insert (/app/bundle/programs/server/packages/rocketchat_file-upload.js:590:14)
rocketchat_1  |     at res.on.Meteor.bindEnvironment (/app/bundle/programs/server/packages/rocketchat_importer.js:391:19)
rocketchat_1  |     at runWithEnvironment (packages/meteor.js:1240:24)

It's similar to a previous issue, but with -1 instead for 0 in file size.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.62.2
  • Operating System: Ubuntu 16.04
  • Deployment Method(snap/docker/tar/etc): Docker with MongoDB outside the container
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • mongoDB Version: 3.6

Steps to Reproduce:

  1. Install MongoDB 3.6
  2. Run Rocket.Chat using Docker Compose, but without MongoDB
  3. Try to import a Slack backup.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions