Improve detection of mimetype

Review Request #124442 - Created July 23, 2015 and submitted

Ragnar Thomsen
101170, 265971
elvisangelaccio, rkcosta

This patch improves the mimetype detection when opening archives. Previously, the filename extension had higher priority than file content when determining mimetype. When opening an archive that had a wrong extension (as in bug 265971), this resulted in Ark failing to open it.

With this patch the mimetype is determined from file content. Additionally, a warning is shown in console output when mimetype from extension and content do not match.

Opening archives with wrong filename extensions now works as expected.


  • 0
  • 2
  • 1
  • 3
Description From Last Updated
Elvis Angelaccio
Elvis Angelaccio
Ragnar Thomsen
Ragnar Thomsen
Ragnar Thomsen
Ragnar Thomsen
Elvis Angelaccio
Ragnar Thomsen
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit d3d3e5928b56db8446bac42ea334d940a3b7b37b by Ragnar Thomsen to branch Applications/15.08.