Rocket.Chat Version: 0.51.0
Protect uploaded files enabled.
I sent a text file with a .conf extension, but when I download it a .bin extension is added (so it became file.conf.bin).
The file itself is a simple config file, but it contains a base64 encoded certificate.
Seeing same issue but seemingly only with .psd files.
Also running 0.51.0
Have this in 0.53.0
Just gone in to File Uploads and changed from GridFS filestorage to Filesystem storage and the .bin extension is no longer being appended (for new uploads). Assume a GridFS issue?
Still present in 0.54.2
"Storage Type" set to "FileSystem"
"Accepted Media Types" set to blank (otherwise it doesn't allow to upload text file with arbitrary extension)
Same issue with 0.56.0 with FileSystem storage type.
After download the file it has a .bin extension
Reproducable with Rocket.Chat version 0.56.0 using GridFS as "Storage Type" and "Accepted Media Types" empty as well.
I've figured out that adding, editing or removing any character on file name in the saving path dialog, it works well. It removes the extra .bin extension
Tested with Rocket.Chat+ 2.8.0 and 0.56.0 with FileSystem storage type
Hope this isn't forgotten, this is still a problem on 0.59.1, I'm using docker if that makes any difference. Also on GridFS and Accepted Media Types as empty.
@MartinSchoeler
Just got the same issue with a Python script (.py). Didn't happen for a .php file.
this issue still exists
0.60.4
Yes, there is problem with .PSD. Its uploading in messages but not sowed up in there.
https://ibb.co/jKGtty
https://ibb.co/caXoRJ
The problem is also relevant in the release of 0.69.1, but it's far from the same with the files. Problem types * .dbf, * cdw, * .exp and many more non-standard formats. Help please solve.
In general we have found the following behavior:
version: 0.69.2
OS: linux
deployment: docker
Files without both filename and file-extension can not be downloaded. Files such as .bashrc or plain "myfile" can not be downloaded, even if they can be uploaded. The download box is shown, and you can click save, but the file is not downloaded.
Files with "unknown" file extension gets ".bin" appended to the filename when downloading.
As a user, I would expect that all files retain their original filename and rocket-chat only does magic handling of them if they can deduce the MIME/file type - and that handling should not alter the filename.
I have the same problem with Indesign *.indd files with version 0.69.2
@Hudell and @rodrigok: While triaging #8540, I discovered the FileUpload.addExtensionTo(file)
method. Is it mandatory?
The problem is still present please fix it.
I have this problem with a lot of files.
Please help. I don't want to switch back to slack or go to Mattermost
Most helpful comment
this issue still exists
0.60.4