I am curious if there's a list of valid image types (essentially extensions) accepted by using image/*
for an input
's accept
attribute. Example:
<input type="file" accept="image/*">
What extensions would be valid for this? Likewise, for the other two, audio/*
and video/*
. Thank you!
Here is the way you can allow different filetypes for accept
attribute.
<input type="file" accept="image/jpeg,image/gif,image/png" />
Same way you can allow audio and video files as well.
Follow this link: http://en.wikipedia.org/wiki/MIME_type
You can check which filetypes are allowed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With