[Bug]: Wrong mimetype gets attached to DNG files when downloading #49297
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
29-feedback
bug
needs info
Bug description
When clicking to download ".DNG" files, the get request gets
content-type: image/x-dcraw
which is according to this is a general mimetype for raw files. On linux firefox only for some reason this results in the file getting the wrong extension of ".bay" instead of the ".DNG". I dont know why firefox prefers the contenttype over thecontent-disposition filename
, and why only on linux (or maybe ff <=132.0.1?) and i guess that maybe is a firefox bug, but anyway the more specific mimetype for .DNG isimage/x-adobe-dng
If you want to use the IANA standard then DNG files are not defined, and should have the
content-type application/octet-stream
. This is what the other sites I tried downloading the DNG file used, but I'd say theres not much harm in using "x-adobe-dng".Originally I was about to create an issue with this:
For some strange reason attempting to download ".DNG" files from both my main nc instance and a test-instance running AIO results in the file being downloaded but with the extension changed to ".bay". This seems to only occur on linux firefox (or firefox 132.0.1) **BUT the browser works fine (as in downloads .DNG files correctly) on all other sites I have tried**, including gdrive, ff-send, some random "uploadsite" I found in the search results, onedrive. Firefox working on all other sites is why Im creating the bug report here.Steps to reproduce
.bay files are called "Digital raw image" by the dolphin (kde filemanager) window that asks me where to save the file. DNG are "Adobe DNG negative". See the gnome git linked above.
Expected behavior
image/x-adobe-dng
or the IANA standardapplication/octet-stream
Nextcloud Server version
29.0.9 and 30.0.2 RC2 (AIO)
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 28.0.1 to 28.0.2)
Are you using the Nextcloud Server Encryption module?
None
Configuration report
List of activated Apps
Nextcloud Signing status
Additional info
Tested:
works as expected = saves as .DNG
The text was updated successfully, but these errors were encountered: