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">
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">
Try with,
<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />