RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.63k stars 10.63k forks source link

[BUG] The file extension is missing when save file on Windows Desktop App #27217

Open rrmt23 opened 2 years ago

rrmt23 commented 2 years ago

Description:

When downloading a file from a chat on a Windows client, the file extension is not added. (see screenshot) For example: People 1 send to chat file "document.pdf" on chat we have "document.pdf" People 2 try to download this document via desktop app "Save as" - rename to "document 01.01.2022" and extensions change from pdf to .2022 and we have file no PDF "document 01.01.2022". Same problem on two machine with Windows 10, on MacOS is OK.

Steps to reproduce:

  1. People 1 send to chat file "document.pdf"
  2. On chat we have "document.pdf" OK
  3. People 2 try to download this document via desktop app Windows client "Save as" - with new name "document 01.01.2022" and result file without .pdf extension.

Expected behavior:

Save file with extension. For ex: Send file.pdf -> save file with new name "document 01.0.2022" -> document 01.0.2022

Actual behavior: Send file.pdf -> Save -> file with new name "name 01.01.2022" .pdf missing.

scrn ext

Server Setup Information:

Client Setup Information

rrmt23 commented 2 years ago

File storage - File system.

rrmt23 commented 2 years ago

If, when saving, we do not touch the file name, then the loss of the extension does not occur. But if we change the file name, then when we save we lose the extension (for ex. pdf)