hey im using <input type="file"> in a form. is it possible to have it so that the only filers visible are *.swf files?
thanks
Printable View
hey im using <input type="file"> in a form. is it possible to have it so that the only filers visible are *.swf files?
thanks
no, you have to figure out what they uploaded with serverside language.
Accept is supposed to do that isn't it? I don't know whether it works on any browsers though. This is what the HTML 4 spec said:
Quote:
accept = content-type-list
This attribute specifies a comma-separated list of content types that a server processing this form will handle correctly. User agents may use this information to filter out non-conforming files when prompting a user to select files to be sent to the server (cf. the INPUT element when type="file").
well I've never seen it used so it must be new. try it out and see
I couldn't get it to work, unless I was doing something wrong. where did you read that?
I don't think any browsers do support it, but it's not new (HTML 4 is over 5 years old isn't it?). And I read it from the official HTML 4 spec on the W3C site. You want me to find the URI for you?