Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

input type file pattern attribute in html

<input type="file" name="my-image" id="image" accept="image/gif, image/jpeg, image/png" />
To select only image files, you can use this accept="image/*"

<input type="file" name="my-image" id="image" accept="image/*" />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #input #type #file #pattern #attribute #html
ADD COMMENT
Topic
Name
5+7 =