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

From: Date: Sun, 14 Oct 2001 02:45:52 +0000
Subject: Re: INPUT type="file" name= value= problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71012@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Po! Not even a clever work round. Guess I could remember the temp file name and copy it to relevant filename when the user fixes errors, how long is temp file likely to be around for? May confuse user a bit though. Not having the filename. Guess I could display a message saying file has been saved in the bit that gives errors. At 03:38 A 14/10/01, you wrote: >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 >------------------------------------------------------------------------ > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com> iQA/AwUBO8juUf4H8PnbFwvHEQK8ywCfcEfpRxBgHCMVGnkNhHwSK1Xi5JYAnjR+ NJe44WbG+JN7lw7iMrg14goX =V+3a -----END PGP SIGNATURE-----

« previous php.general (#71012) next »