commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Cooper" <mart...@apache.org>
Subject Re: FileUpload: Uploading an specific file format
Date Tue, 06 Nov 2007 18:32:00 GMT
On Nov 6, 2007 10:20 AM, Gerardo Corro <gerardo.corro@mundivia.net> wrote:
> Thanks, but the accept is not working, it still shows me in the select window all file
formats. I tested in firefox and IE7.
>
> What I'm doing wrong??

Nothing. AFAIK, the browsers just don't do that, so you're out of luck.

--
Martin Cooper


> <form method="post" name="uploader"
>
> enctype="multipart/form-data"
>
> action="UploaderServlet">
>
> <p>
>
> Send your .gif image
>
> <br>
>
> <input type="file" name="pic" size="40" accept="image/gif">
>
> <p>
>
> <input type="submit" value="Send">
>
> </form>
>
>
> ________________________________
>
> From: petite_abeille [mailto:petite_abeille@mac.com]
> Sent: Tue 11/6/2007 7:10 PM
> To: Jakarta Commons Users List
> Subject: Re: FileUpload: Uploading an specific file format
>
>
>
>
>
> On Nov 06, 2007, at 18:31, Gerardo Corro wrote:
>
> > How could I get the same window just allowing to upload an specific
> > type of file, like an .xls or .doc or .jpg?
>
> http://www.w3.org/TR/html4/interact/forms.html#adef-accept
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
>
>
>
> ------------------------------------------------------------------
> This e-mail and the documents attached are confidential and intended solely
> for the addressee; it may also be privileged. If you receive this e-mail
> in error, please notify the sender immediately and destroy it.
> As its integrity cannot be secured on the Internet, the Atos Origin group
> liability cannot be triggered for the message content. Although the
> sender endeavours to maintain a computer virus-free network, the sender does
> not warrant that this transmission is virus-free and will not be liable for
> any damages resulting from any virus transmitted.
>
> Este mensaje y los ficheros adjuntos pueden contener informacion
> confidencial destinada solamente a la(s) persona(s) mencionadas
> anteriormente. Pueden estar protegidos por secreto profesional Si usted
> recibe este correo electronico por error, gracias de informar inmediatamente
> al remitente y destruir el mensaje.
> Al no estar asegurada la integridad de este mensaje sobre la red, Atos
> Origin no se hace responsable por su contenido. Su contenido no constituye
> ningun compromiso para el grupo Atos Origin, salvo ratificacion escrita por
> ambas partes.
> Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
> no puede garantizar nada al respecto y no sera responsable de cualesquiera
> danos que puedan resultar de una transmision de virus
> ------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message