dangerzone icon indicating copy to clipboard operation
dangerzone copied to clipboard

XML/ZIP/OctetStream File Mime Type Disambiguation

Open deeplow opened this issue 5 months ago • 0 comments

Many file are in fact zip files with a particular structure which is then interpreted by the file viewer. This fact makes these filetypes particularly difficult to identify mime type because they can be multiple file formats. Examples of files that have application/zip mimetype:

Then we also have files which are XML-based and are thus identified as text/xml:

  • .fb2 And some are application/octet-stream:
  • .mobi

My suggestion would be to somehow expose the file extension to the conversion process to help identify the file type.

deeplow avatar Jan 29 '24 15:01 deeplow