Description
Using a supported version?
- I have searched searched open and closed issues for duplicates.
- I am using Signal-Desktop as provided by the Signal team, not a 3rd-party package.
Overall summary
The Signal desktop app does not properly handle saving attachments to Windows with trailing periods in their filenames. Files can be renamed in the "Save As" dialog when they are downloaded, but the saved file will still end with "." even if the user explicitly removes the period.
The Win32 API does not support filenames that end with "." so files like this cannot be opened, moved, renamed, or deleted through Windows File Explorer. They can only be handled using the command line, which most users are not comfortable with.
Steps to reproduce
- Go to any chat in the Windows desktop app.
- Receive a message with an attached PDF file that has a filename ending in ".", e.g. "file."
- Download the file.
- In the "Save As" dialog, attempt to rename the file so that it does not contain a trailing period, e.g. "file.pdf"
Expected result
The downloaded file should have the filename assigned by the user in the Save As dialog. For example, if the user renamed the file to "file.pdf" it should be saved as "file.pdf"
Actual result
The downloaded file will have a trailing period in its filename, even if the user removed the period in the Save As dialog. For example, if the original filename was "file." and the user renamed it to "file.pdf" the actual filename will be "file.pdf." with an extra trailing period.
The user will not be able to open, rename, or delete this file using Windows File Explorer. It can be renamed using cmd.exe with the command
ren \\?\C:\path\to\file.pdf. file.pdf
or deleted with the command
del \\?\C:\path\to\file.pdf.
Screenshots
Screenshot of chat in Windows app
Screenshot of Save As dialog

Screenshot of attempting to delete the saved file in Windows File Explorer

Signal version
7.58.0
Operating system
Windows 11
Version of Signal on your phone
7.45.3
Link to debug log
No response