Platform: Windows 11
Browser, if a website issue: Edge
URLs (aka web addresses) of any relevant observations or pages: Add Observations · iNaturalist
Screenshots of what you are seeing:
Description of problem: Uploading an HEIC file from the browser fails with a “File not supported” error.
There was another topic about this same issue last year, but it was closed after the following comment from an iNaturalist staff member:
“So we looked into fixes for this and it seems like the root issue is that Windows doesn’t really support HEIC very well and there isn’t much we can do about it.”
I did some debugging and it appears that Chromium-based browsers (Chrome, Edge) on Windows do not have a MIME type mapping for HEIC. For HEIC files, file.type returns an empty string, which iNaturalist rejects because it’s not in the list of support MIME types.
I don’t think this is a Windows issue per se, though. Windows 10 and 11 do support HEIC and have for years. They can display them using built-in applications and show previews in File Explorer. At least on my machine, I also do have a MIME type mapping for .heic files in the registry. But the browser doesn’t seem to respect this.
This should be fixable on iNaturalist’s end. It looks like the file upload uses the React-Dropzone component. It should be possible to configure this component to accept files based on extension as well as MIME type, or to just ignore the MIME type check. I will also report this issue to Chromium though.
