tag."/> tag." itemprop="description"/> tag." />

How to accept only image files in file type input tag?

I want to  upload only image file using the <input type="file"> tag.

Currently, it accepts all file types. But, I want to restrict it to only allow image file extensions which include .jpg, .gif etc.

How can I get this functionality?

0 Answers
Be a First Answer
Add Your Answer