Acceptable file types

The accept attribute specifies a filter for what file types the user can pick from the file input dialog box. The accept attribute can only be used with <input type=”file”>

<input type="file"
       name="poster"
       accept="image/png, image/gif, image/jpeg, image/svg+xml">

Leave a comment

Your email address will not be published. Required fields are marked *