|
-
Jul 25th, 2002, 04:07 PM
#1
Thread Starter
<?="Moderator"?>
filter file types
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
-
Jul 25th, 2002, 09:37 PM
#2
Frenzied Member
no, you have to figure out what they uploaded with serverside language.
-
Jul 26th, 2002, 06:43 AM
#3
Frenzied Member
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:
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").
-
Jul 26th, 2002, 07:25 AM
#4
Frenzied Member
well I've never seen it used so it must be new. try it out and see
-
Jul 26th, 2002, 08:13 AM
#5
Frenzied Member
I couldn't get it to work, unless I was doing something wrong. where did you read that?
-
Jul 28th, 2002, 05:47 AM
#6
Frenzied Member
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|