On Mon, Oct 01, 2001 at 04:46:58PM -0400, Cole Tuininga <[EMAIL PROTECTED]> wrote:
> Quasi on topic question for you folks.
>
> I'm working on a site that will require file uploads.
>
> I create the input tag with no problem, and the widget shows up on the
> page with the 'Browse' button. When you click on it, the little file
> browser comes up. Here's where my question comes in.
This widget is what the W3C refers to as the "file select control".
> At least on my system, the file browser comes up with a default filter
> of *.html. Is this something to do with the client (netscape) setup?
> Can I change what this pops up as by adding/changing something in the
> input tag? Thanks in advance.
To my knowledge, you can't specify this in a cross-platform way.
Note that Mozilla (and I think IE) come up with a default filter of "*"
("*.*" for IE). I'm not sure if you can customize on the client.
http://www.w3.org/TR/html401/interact/forms.html#file-select
http://www.w3.org/TR/html401/interact/forms.html#input-control-types
This documents states that "User agents may use the value of the
value attribute as the initial file name", but Netscape doesn't appear
to treat a value of "*.jpg" as a wildcard.
--
Bob Bell <[EMAIL PROTECTED]>
-------------------------------------------------------------------------
"During my service in the United States Congress, I took the
initiative in creating the Internet."
-- An apparently confused Vice President Al Gore
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************