Re: file upload: Browser bug, HTML bug or PHP bug?
| From: | Jade Nicoletti | Date: | Tue, 11 Jul 2000 19:03:24 +0000 |
| Subject: | Re: file upload: Browser bug, HTML bug or PHP bug? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-24217@lists.php.net to get a copy of this message | ||
This is not a bug. Netscape ignores the value attribute for security reasons.
Imagine something like this:
<input type="file" name="passwd" value="/etc/passwd"
style="display: none">
-Jade.
PS: php-general@lists.php.net would have been a better choice for this kind
of question.
On Tue, Jul 11, 2000 at 06:43:12PM +0000, Christian Goetze wrote:
>
> I am noticing that when using netscape 4.7, I cannot use
>
> <input type="file" name="userfile" value="somefile.txt">
>
> The browser will display an empty field. Perhaps this is because
> somefile.txt doesn't exist.
>
> OTOH, I am using the php $userfile_name variable to populate the value
> attribute, and php seems to strip off the directory part of the name. Is
> this a feature?
>
> Anyway, I'd like to know if there is a way to properly populate the value
> attribute.
>
> Thanks in advance for any pointer - please CC me to any replies, as I'm
> not subscribed to php-help.
> --
> cg
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
===============================================================================
Jade Nicoletti Nicoletti Net Services Tel. 01 240 4774
Geschäftsleitung Postfach 2519 Fax 01 240 4775
System-Administration 8021 Zürich
============================================[ Weitere Infos: http://nns.ch/ ]==