Make sure you dont just accept any inputs from that form, its really easy to spoof referrers and all of that, so be sure to check the file's header in your server-side script and make sure its application/pdf.

On 9/11/06, Raffael Luthiger <[EMAIL PROTECTED]> wrote:
Thanks!

I did already read http://www.w3.org/TR/html4/interact/forms.html. But
somehow I didn't see this part. I should read more carefully next time. :(

That's exactly what I needed as a first step.

Raffael

Kelvin Luck wrote:
> How about:
>
> <input type="file" accept="application/pdf" name="whatever" />
>
> A good first step, this should get most browsers limiting what you can
> select in the popup choose file dialog,
>
> Hope this helps,
>
> Kelvin :)


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to