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

[Bug] HEIC file upload not working #60

Open
2 tasks done
bennetsadyba opened this issue May 14, 2024 · 1 comment
Open
2 tasks done

[Bug] HEIC file upload not working #60

bennetsadyba opened this issue May 14, 2024 · 1 comment

Comments

@bennetsadyba
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Have you updated FilePond and its plugins?

  • I have updated FilePond and its plugins

Describe the bug

When I upload a .heic file I get a 'labelFileTypeNotAllowed' message followed by 'fileValidateTypeLabelExpectedTypes'. I'm having allowFileTypeValidation:true and have set:

acceptedFileTypes: ['image/heic'],
fileValidateTypeLabelExpectedTypesMap : { 'image/heic': '.heic'},

any chance for help or any hints how to debug this?

Reproduction

Upload a .heic file, an upload error pops up.

Environment

Chrome, desktop
@rikschennink rikschennink removed the bug label May 16, 2024
@rikschennink rikschennink transferred this issue from pqina/filepond May 16, 2024
@rikschennink
Copy link
Collaborator

From https://github.com/pqina/filepond-plugin-file-validate-type

If you're having trouble setting the correct mime type, use this codepend demo to view the mime type detected by different browsers.

Make sure the browser detects that type correctly or add more types to the list, you can also detect the type manually with https://pqina.nl/filepond/docs/api/plugins/file-validate-type/#custom-type-detection

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

No branches or pull requests

2 participants