Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accept attribute for file uploads?

Status
Not open for further replies.

apwalton

Programmer
Apr 22, 2001
2
0
0
US
I am trying to implement the accept attribute so that the user can only upload files of type gif and jpeg:

<input name=&quot;uploadedFile&quot; type=&quot;file&quot; accept=&quot;image/gif, image/jpeg&quot;>

But it does not seem to have any effect. I can still upload any file. any ideas?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top