Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading .heic and .heif image types not supported or not working? #1604

Closed
Kellarn opened this issue May 28, 2019 · 6 comments · Fixed by #1734
Closed

Uploading .heic and .heif image types not supported or not working? #1604

Kellarn opened this issue May 28, 2019 · 6 comments · Fixed by #1734
Assignees
Labels

Comments

@Kellarn
Copy link

Kellarn commented May 28, 2019

Hello!

I am trying to get my uppy to be able to upload .heic and .heif images. Both when specifically adding allowedFileTypes: ['image/heif', 'image/heic'] and when trying with allowedFileTypes: ['image/*', 'video/*'] it still doesn't detect my .heic images as an image. I need to let my users only be able to upload images! I looked into your release https://uppy.io/blog/2017/07/0.17/ and search the provided list https://www.iana.org/assignments/media-types/media-types.xhtml where heic exists, but I can't get it to work.

Is there an issue or is .heic and .heif just not supported?

Best regards,
Sebastian

@goto-bus-stop
Copy link
Contributor

goto-bus-stop commented May 29, 2019

we rely on the browser to detect most mime types, they may not detect heic/heif correctly. That blog post may not be entirely accurate anymore, a lot changed in Uppy in 2 years :)

You can explicitly whitelist them by extension:

allowedFileTypes: ['image/*', '.heic',  '.heif']

@kvz
Copy link
Member

kvz commented Jun 3, 2019

Hi there, did @goto-bus-stop's suggestion work for you? If it did, we could perhaps add these extensions to Uppy's whitelist and make them work for all? Do let us know if you have additional feedback and we'll re-open this issue (closing in the meantime).

@nisha-parikh
Copy link

heic preview is not working

@oliviasculley
Copy link

Unfortunately, browser preview doesn't work because .heic isn't supported by any browsers as of this post (not even safari): https://caniuse.com/?search=HEIC

@arturi
Copy link
Contributor

arturi commented May 4, 2023

@oliviasculley do you mean we should change something in Uppy regarding this, or just confirming the fact? thanks :)

@oliviasculley
Copy link

There were a couple thumbs up on the heic preview not working comment so didn't want to leave them hanging 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants