W3C home > Mailing lists > Public > www-html@w3.org > February 2002

AW: Input Type=file default Value

From: Tanev Robert <RT@railconsult.de>
Date: Thu, 14 Feb 2002 16:55:13 +0100
Message-ID: <4BD11F615087D51189CC0000CB5647470983E0@RAILCONSULT>
To: "Www-Html (E-Mail)" <www-html@w3.org>
Hi there,

thanks to both Andrew and Christian for their replies.
We see that providing the file input with a default value does not work and
*should* not work ;-).

Truly convinced,


-----Ursprüngliche Nachricht-----
Von: Andrew Clover [mailto:and@doxdesk.com]
Gesendet: Donnerstag, 14. Februar 2002 15:00
An: www-html@w3.org
Betreff: Re: Input Type=file default Value

Tanev Robert <RT@railconsult.de> wrote:

> Does anybody know, how to force a file input element to show an initial
> value or does somebody has a workaround for this?

This is a browser issue, not anything to do with the HTML spec. Most
ignore the value attribute and do not allow it to be set from script at all,
as a security precaution. Opera allows the value to be set from HTML, but
issues a warning when the form is submitted.

There is no workaround, or where there is (eg. setAttribute('type', 'file')
Mozilla up to 0.9.3) it's a security bug.

Andrew Clover
Received on Thursday, 14 February 2002 10:42:50 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 15 July 2018 06:07:48 UTC