Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not upload Auto Cad drawing file on rocket #11828

Closed
phongb2b opened this issue Aug 20, 2018 · 8 comments
Closed

Could not upload Auto Cad drawing file on rocket #11828

phongb2b opened this issue Aug 20, 2018 · 8 comments

Comments

@phongb2b
Copy link

Description:

Steps to reproduce:

  1. Allow unlimit upload file type by clear the Comma-seperate list of media type then restart RocketChat server
  2. On a direct message , click on ' +' icon and select upload a Auto Cad drawing file xxx.dwg from local computer
  3. File upload and complete but not show the download icon
  4. Check it on the 'Files List' we could see the file xxxx.dwg but it grey out and could not download

Expected behavior:

The download link should show with a download icon, and show

Actual behavior:

Server Setup Information:

  • Version of Rocket.Chat Server: 0.68.3
  • Operating System: Ubuntu 18.04 - OS release 4.4.0-130-generic
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v8.11.3
  • MongoDB Version:

Additional context

Relevant logs:

�[34mI20180820-06:34:12.424(0) Exception while invoking method 'sendFileMessage' Error: Input buffer contains unsupported image format => awaited here: at Function.Promise.await (/snap/rocketchat-server/1317/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12) at Promise.asyncApply (/snap/rocketchat-server/1317/programs/server/packages/rocketchat_file-upload.js:1745:49) at /snap/rocketchat-server/1317/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
�[34mI20180820-06:40:05.268(0) Exception while invoking method 'sendFileMessage' Error: Input buffer contains unsupported image format => awaited here: at Function.Promise.await (/snap/rocketchat-server/1317/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12) at Promise.asyncApply (/snap/rocketchat-server/1317/programs/server/packages/rocketchat_file-upload.js:1745:49) at /snap/rocketchat-server/1317/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
�[34mI20180820-06:42:39.032(0) Exception while invoking method 'sendFileMessage' Error: Input buffer contains unsupported image format => awaited here: at Function.Promise.await (/snap/rocketchat-server/1317/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12) at Promise.asyncApply (/snap/rocketchat-server/1317/programs/server/packages/rocketchat_file-upload.js:1745:49) at /snap/rocketchat-server/1317/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
�[34mI20180820-07:21:42.679(0) Exception while invoking method 'sendFileMessage' Error: Input buffer contains unsupported image format => awaited here: at Function.Promise.await (/snap/rocketchat-server/1317/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12) at Promise.asyncApply (/snap/rocketchat-server/1317/programs/server/packages/rocketchat_file-upload.js:1745:49) at /snap/rocketchat-server/1317/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40 https://rocket.chat/docs/contributing/reporting-issues#gathering-logs -->

@madguy02
Copy link
Contributor

@sampaiodiego are there plans to support this file format?

@madguy02
Copy link
Contributor

@phongb2b you can probably zip or tar the file and then upload... that should work

@sampaiodiego
Copy link
Member

definitely. the error seems it's trying to process it like an image, the fix might be treating is as a regular file

@phongb2b
Copy link
Author

phongb2b commented Aug 28, 2018

@madguy02 yes, it works with zip/rar but our user would like to drag and drop CAD file to RocketChat client.
PS: We could upload/download SQL bak file and it auto convert to .bak.bin file., then we have to change back to .bak

@madguy02
Copy link
Contributor

For the first part regarding autoCAD .dwg support, I will try to submit a PR ASAP.

For the second part of your query, you mean the .bak file are auto converted to .bak.bin?? after download?

@phongb2b
Copy link
Author

phongb2b commented Aug 28, 2018

@madguy02 after we upload SQL xxx.bak file, it auto changes to xxx.bak.bin when completed upload file. We do a hash check that file (after downloaded and change back to xxx.bak) , it is OK.

@madguy02
Copy link
Contributor

Ok, shall look at it once...

@phongb2b
Copy link
Author

Thank your effort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants