W3C home > Mailing lists > Public > www-html@w3.org > June 2003

Re: Input type=file

From: Joris Huizer <joris_huizer@yahoo.com>
Date: Tue, 3 Jun 2003 03:57:39 -0700 (PDT)
Message-ID: <20030603105739.94450.qmail@web20201.mail.yahoo.com>
To: vishnupriya <vishnumn@sakinfotech.co.in>, www-html@w3.org

HTML401 says this:

    Creates a file select control. User agents may use
the value of the value attribute as the initial file
Note the word 'may': it's allowed to do this, but it's
not required.

Most browsers decided not to allow a default value:
they thought it might be a security risk as
private/secret info could be posted without you
knowing (I don't know how one could do that without
CSS, but now that there is CSS the problem is

In short, no, you can't get have a default value in
most browsers, including IE

--- vishnupriya <vishnumn@sakinfotech.co.in> wrote:
> Hi ,
> here i am trying to display default value for an
> input file type.
> My code is 
> <form name="gesimg" action="gesimg.asp"
> method="post" enctype="multipart/form-data">
> <input type="file" name="f" value=""/>
> <input
>   type="submit"
>   value=""
>  />
> </form>
> but this code is not working can anyone help .
> I need to display the value by default path in the
> file type.
> Thanks in advance and I am using IE5.5 .

Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
Received on Tuesday, 3 June 2003 06:57:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:04 UTC