-
Notifications
You must be signed in to change notification settings - Fork 350
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
Enhancement: allowedContentTypes to match HTML5 input "accept" #499
Comments
Any progress? |
Some Mime types not recognized, like for example
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Currently
allowedContentTypes
for input options only seems to accept very specific MIME types. The expected results would be that theallowedContentTypes
array would match how a DOM<input accept="<allowedContentTypes>"
performs.Specific Issues
Noticed mismatch on:
blanket MIME types (
image/*
,audio/*
)specific extensions (
.dae
,.dxf
)Reproduction
Using the demo .ts and .html files, append options to include:
allowedContentTypes: ['image/*', '.dae']
This results in the input rejecting all image files and .dae extension files.
Append
<input accept="image/*, .dae" />
and image files and .dae extensions are no longer rejected, but are the only files allowed to be selected for upload.The text was updated successfully, but these errors were encountered: