Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

.bin extension added to dowloaded files

Open yannfill opened this issue 9 years ago • 16 comments

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.

yannfill avatar Feb 14 '17 10:02 yannfill

Seeing same issue but seemingly only with .psd files.

Also running 0.51.0

zyio avatar Feb 14 '17 11:02 zyio

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?

richardt3 avatar Mar 17 '17 00:03 richardt3

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)

Gandalf-the-Grey avatar Apr 10 '17 07:04 Gandalf-the-Grey

Same issue with 0.56.0 with FileSystem storage type. After download the file it has a .bin extension

tomepsilva avatar May 22 '17 16:05 tomepsilva

Reproducable with Rocket.Chat version 0.56.0 using GridFS as "Storage Type" and "Accepted Media Types" empty as well.

Schobers avatar May 29 '17 09:05 Schobers

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

tomepsilva avatar Jul 13 '17 08:07 tomepsilva

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

dekork avatar Oct 27 '17 22:10 dekork

Just got the same issue with a Python script (.py). Didn't happen for a .php file.

pascalrobert avatar Nov 29 '17 16:11 pascalrobert

this issue still exists 0.60.4

Maqsyo avatar Jan 19 '18 14:01 Maqsyo

Yes, there is problem with .PSD. Its uploading in messages but not sowed up in there. https://ibb.co/jKGtty https://ibb.co/caXoRJ

axchemezov avatar May 17 '18 21:05 axchemezov

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.

dopsmain avatar Sep 18 '18 12:09 dopsmain

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.

per-bohlin avatar Sep 27 '18 14:09 per-bohlin

I have the same problem with Indesign *.indd files with version 0.69.2

stleitner avatar Oct 17 '18 13:10 stleitner

@Hudell and @rodrigok: While triaging #8540, I discovered the FileUpload.addExtensionTo(file) method. Is it mandatory?

tassoevan avatar Dec 27 '18 16:12 tassoevan

The problem is still present please fix it.

I have this problem with a lot of files.

fabien4455 avatar Jan 16 '19 08:01 fabien4455

Please help. I don't want to switch back to slack or go to Mattermost

Nicolas-Alain avatar Feb 13 '19 10:02 Nicolas-Alain