lagrange icon indicating copy to clipboard operation
lagrange copied to clipboard

Patch to support more file extensions to MIME types

Open johnwcowan opened this issue 3 years ago • 1 comments

This is preparatory to FTP support, where only the extension tells you what the MIME type is.

more-extensions.diff.txt

johnwcowan avatar Aug 28 '22 17:08 johnwcowan

Nice. Recognizing more extensions should be helpful in general.

I'll only need to check if mediaTypeFromFileExtension_String is being called often anywhere, which would have an implication on performance. In that case, using a binary search into an alphabetically sorted array might be preferable to a linear for loop.

skyjake avatar Aug 29 '22 00:08 skyjake

Patch merged (with minor edits) in dev branch, due v1.14.

skyjake avatar Nov 07 '22 21:11 skyjake