DEV Community

Discussion on: How To Only Accept Images using HTML

Collapse
 
andreasvirkus profile image
ajv

Yes, I agree with Jon here - something like accept="image/*" would be better. You also wouldn't have to worry about manually maintaining the list, for instance right now it's missing .webp and some other modern extensions.

Collapse
 
codeanddeploy profile image
Code And Deploy

Yeah your are right. Thank you.