After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 544033 - Downloaded files extensions don’t always match the MIME type
Downloaded files extensions don’t always match the MIME type
Status: RESOLVED OBSOLETE
Product: epiphany
Classification: Core
Component: Downloads
2.22.x
Other Linux
: Normal enhancement
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-21 17:17 UTC by Josselin Mouette
Modified: 2018-08-03 19:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Josselin Mouette 2008-07-21 17:17:41 UTC
When saving a file (especially a web page) or downloading it, it is saved with the same name than on site. However the resulting extension does not always correspond to the MIME type. After which nautilus raises valid concerns about a mismatch between the filename and its contents.

It would be nice if epiphany could check whether the filename corresponds to the valid patterns for the MIME type in the MIME database, and add a correct extension to the proposed name when this is not the case.
Comment 1 Reinout van Schouwen 2008-07-21 20:36:21 UTC
That's not a bad idea, but what should be the behaviour when auto download & open is enabled? Still offer a dialog?
Comment 2 Josselin Mouette 2008-07-22 09:49:11 UTC
At least for HTML pages, maybe it could simply append ".html" to the filename. As for doing it for all MIME types, this may cause trouble when the HTTP server gives a wrong type, which is not so uncommon. Furthermore, I don’t think gio has an API to obtain a file extension for a given MIME type.
Comment 3 GNOME Infrastructure Team 2018-08-03 19:22:51 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/epiphany/issues/126.