Re: INPUT type="file" name= value= problem

From: Date: Sun, 14 Oct 2001 01:38:07 +0000
Subject: Re: INPUT type="file" name= value= problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71011@lists.php.net to get a copy of this message
For security reasons, you can not set the filename in a file box with HTML remotely. This includes keeping state such as what you are trying to do. It is a security precaution. Here is what the PERLDOC for CGI.pm says about this: For security reasons, browsers don't pay any attention to this field, and so the starting value will always be blank. Worse, the field loses its "sticky" behavior and forgets its previous contents. The starting value field is called for in the HTML specification, however, and possibly some browser will eventually provide support for it. > All well apart from one thing. Cant get filename of files included from > form type=file 'Browse' input field. Thought below would work but file > always empty. Any ideas? ------------------------------------------------------------------------ James "Mike" Patton \ Professional web applications developer mpatton@acuitymedia.com \ specializing in PERL, MySQL, PHP and JAVA ------------------------------------------------------------------------

« previous php.general (#71011) next »