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:

typr="file"
    Creates a file select control. User agents may use
the value of the value attribute as the initial file
name.
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
realistic

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).
http://calendar.yahoo.com
Received on Tuesday, 3 June 2003 06:57:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:55 GMT