Defect #31275
closedSafari adds .html extension when downloading files of unknown type
0%
Description
Redmine Version: 4.0.3.stable
Browser Version: Safari 12.1
Operating system: macOS 10.14.4
What is the issue and how can it be reproduced?
This problem only seems to happen in the Safari browser. When trying to download a "irregular" file such as .indd, .idml, etc. from Redmine, it always adds a .html at the end of the file. Downloading a picture file (.jpeg .png .gif etc.) for example, is working perfectly fine and does not get the .html at the end of the filename.
It looks like Redmine adds either the wrong content-type or none at all which may lead to this issue in Safari.
What is the expected behavior?
When downloading any type of file from Redmine with Safari, it should always download the file as is and not add anything at the end of the filename.
Additional info:
At first I thought that it was an issue with Safari as it was working perfectly fine in Chrome or Firefox but as regular files are working in Safari as well, I kind of think that this is a combined issue of Redmine and Safari. (Safari being too straight with file types)