You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the content-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 is image/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
Create a empty file ending with .DNG or use existing .DNG image
open the inspector to see the get request
Click to download
(maybe) observe .bay getting saved instead of .DNG, either way the content type is image/x-dcraw
.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
That the file gets the content-type of image/x-adobe-dng or the IANA standard application/octet-stream
That the downloaded DNG file gets the correct extension as they seem to get on other sites, or in other browsers.
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?
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: