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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File upload - "ACCEPT" property problem 1

Status
Not open for further replies.

dkdude

Programmer
Jun 16, 2003
849
DK
I can't get the "ACCEPT" property to work. I googled it and this ...

Code:
<INPUT TYPE="file" NAME="sourceImage" ACCEPT="image/jpeg">

... should work. It doesn't -neither in IE6 nor in FireFox?!

The DOCTYPE is HTML 4.01 transitional.

Thanks,


Jakob
 
You're right, it doesn't work. I'm not aware of a mainstream browser that implements the [tt]accept[/tt] attribute. You'll just have to double check within your script that the uploaded file is, in fact, a jpeg.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Thanks Chris!

I won't waste any more time on that one then c",)


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top