note 28274 added to features.file-upload
| From: | mccorkle+php at devteam dot org | Date: | Wed, 08 Jan 2003 05:59:53 +0000 |
| Subject: | note 28274 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41811@lists.php.net to get a copy of this message | ||
To anyone that is trying to use values="foo" to set a default value in a input type of
``file'', I found this out from http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm:
* Internet Explorer, Netscape and Opera do not use the VALUE attribute as the default contents of
the input area. Any default value set via HTML is not usable via scripting and the DOM as well
(hence it is not listed as 'supported' in any of the browsers.) If a user enters text in
the field however, that value is then reachable via the DOM as it normally would be for a normal
INPUT field (via the .value property.) The reason for this behavior would presumably be to ensure
the security/safety of users against malicious authors.
Tooke me a bit to find this, so I figured I'd share.
--
http://www.php.net/manual/en/features.file-upload.php
http://master.php.net/manage/user-notes.php?action=edit+28274
http://master.php.net/manage/user-notes.php?action=delete+28274
http://master.php.net/manage/user-notes.php?action=reject+28274