rocket-python icon indicating copy to clipboard operation
rocket-python copied to clipboard

API File Upload, .txt download only.

Open nemoydev opened this issue 3 years ago • 0 comments

When using: api.upload_file(room_id=id,file=files,description='some text',message='some text') the file is uploaded to respective room, and file format is correctly displayed. in example. file.pdf However, when downloading (through Rocket Chat on Windows), it automatically specifies the file as .txt and hereby changes the format. The save prompt does not recoqnice the fileformat: pdf or xlsm in example. I can override the issue by first select file format of save prompt from .txt to . and then place the cursor on the filename and the press save button.

on IOS Rocket Chat App, it can open the files correctly, but the app does not allow downloads. So it is unclear if the issue will also occur on IOS rocket chat app.

If I manually upload the same files by drag'n'drop into the same chat room I can download normally, internal and external from my network.

nemoydev avatar Apr 30 '22 09:04 nemoydev