FileSignatures icon indicating copy to clipboard operation
FileSignatures copied to clipboard

FileFormat does not support multiple extensions

Open charliettaylor opened this issue 2 years ago • 2 comments

Some file formats have multiple extensions and it would be nice to be able to have aliases for them. For example, image/jpeg can be .jpg or .jpeg and image/tiff can be .tif or .tiff.

Suggested change:

  • Add a new property to FileFormat called something like Extensions or OtherExtensions
  • Update constructors to allow an optional list/array of alternate extensions to be passed

charliettaylor avatar Dec 15 '23 19:12 charliettaylor

Sure, we had a similar request recently which I've started implementing - I'll try to find some time to finish it off.

neilharvey avatar Dec 17 '23 08:12 neilharvey

I stumbled over the same problem. Implemented a workaround right now where I compared the media type. @neilharvey: If you need some help to provide a fix, let me know...

wullemsb avatar Aug 11 '25 13:08 wullemsb