DEV Community

Discussion on: How To Only Accept Images using HTML

Collapse
 
jonrandy profile image
Jon Randy 🎖️

It is a much better idea to use both the file extensions and mime/media types in the accept attribute - this will make it more likely that the files are actually images (and not just files that happen to have the correct extension)

Collapse
 
codeanddeploy profile image
Code And Deploy

Great. Thanks for the idea.