Is it possible to handle a binary file?

I want to handle a binary file of certain mime type when it is opened in Firefox - like show some html describing the file contents.
Is that possible?
If so, could you please point me to the right direction, or, even better, to an example?

Thank you!

1 Like

You can probably:

  • set Firefox as the default program for a file type on the OS level manually
  • Intercept loads of file:// URLs with the corresponding type with webNavigation
  • load the target file and display whatever you want in the tab.

I’m not really sure if the 2nd step will work, though. You’ll have to try!