Topic awaiting preservation: Using input type=file |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Israel |
posted 09-01-2002 19:51
Hi. |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 09-01-2002 19:59
im not sure, but i dont think that's possible without a server side scripting language. |
Bipolar (III) Inmate From: Berlin (almost) |
posted 09-01-2002 21:38
There's an attribute called "accept" that lets you specify the mime types which the browser should accept for that field. I don't know in which browsers this will or won't work though. |
Bipolar (III) Inmate From: Israel |
posted 09-02-2002 07:53
I read about the accept attribute, this is exactly what I need but it's not working. |
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 09-02-2002 10:01
As the support for accept-type is so unsure in browsers, i'd go for a small javascript that checks the extension before submitting the form, like this: code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|