FileUpload accept property
Fileupload object
Definition and Usage
The accept property can set or return the comma-separated content types.
Syntax
Set the accept property:
fileuploadObject.accept="
content-type,content-type,...
"
Return the accept property:
fileuploadObject.accept
Browser support





All major browsers support the accept property! But only Firefox, Opera, and Chrome browsers return the file type.
Example
Example
Display The content types the element can accept:
Try it »
Fileupload object