Title: Message
Current browsers generally ignore the ACCEPT attribute.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]] On Behalf Of Serdar BOZDAÐ
Sent: Tuesday, July 23, 2002 1:11 PM
To: [EMAIL PROTECTED]
Subject: Re: file type in html

I tried but it does not work. bu html code is
 
<html><body>
<FORM METHOD=post ACTION="/cgi-bin/validate.cgi" ENCTYPE="multipart/form-data">
<P>Select an HTML document to upload and validate. If your browser does not support form-based file upload, use one of our <A HREF="methods.html">alternate methods of validation</A>.</P>
<P><INPUT TYPE=file NAME="html_file" ACCEPT="text/html"></P>
<P><INPUT TYPE=submit VALUE="Validate it!"></P>
</FORM>
</body></html>
 
 
----- Original Message -----
Sent: Tuesday, July 23, 2002 7:59 PM
Subject: Re: file type in html

hI!
it's possible: <input type="file" accept="text/*">
 
-mw
----- Original Message -----
Sent: Tuesday, July 23, 2002 3:01 PM
Subject: file type in html

hi,
i have an html page which has a form. in this form there is an input whose type is file
so users press BROWSE button and choose a file then press upload button to upload the file. but I want to filter the file choose. (Users can only select txt files for instance)
can i do this?
thanks a lot,
serdar
 

Reply via email to