-1

I'm looking for a way to stop users from uploading video to my site. I just want images and GIF.

Is there a javascript method I can apply to prompt users that video format is not allowed?

<input type="file">
Counter J
  • 173
  • 4
  • 16

1 Answers1

1

Try with,

<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />
Priyal Pithadiya
  • 889
  • 1
  • 5
  • 12