Re: file upload temp file is and isn't there
| From: | Aaron D. Turner | Date: | Tue, 13 Feb 2001 23:51:31 +0000 |
| Subject: | Re: file upload temp file is and isn't there | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39531@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 13 Feb 2001, Michael McGlothlin wrote:
> A lil clip from Devedge.. you need a VALUE="" field along w/ a NAME=""
> maybe?
A VALUE= isn't required for TYPE=file (and adding it didn't solve my
problem).
> This places an element on an HTML form that lets the user supply a file
> as input. When the form is submitted, the content of the specified file
> is sent to the server as the value portion of the name/value pair for
> this input element. Netscape Navigator displays a "Browse" button next
> to the file input element that lets users select a file from their
> system to use as the value of the file input element. *Navigator 2.0*
Yep, and if you look at the HTTP_POST_FILES hash you'll see that the
browser/form properly sent the filename. The problem is with the
temporary file that isn't created/stored. More specifically,
HTTP_POST_FILES[userfile][tmp_name] is set to 'none' when it should be
something like /tmp/abc123 and the size is 0.
- --
Aaron Turner <aturner@pobox.com|synfin.net|linuxkb.org> URI:www.synfin.net
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety. -- Benjamin Franklin
pub 1024D/F86EDAE6 Sig: 3167 CCD6 6081 0FFC B749 9A8F 8707 9817 F86E DAE6
All emails by me are PGP signed; a lack of a signature indicates a forgery.
I have retired my PGP 2.6.2 key: FBE1 CEED 57E4 AB80 596E 60BF 451B 20E8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc
iEYEARECAAYFAjqJyJEACgkQhweYF/hu2ua1gwCfU6P+ScZCxAKlOFqlAzcZLkX7
KoEAoJDPG7AvelXPlLusT3BME1EZQQX/
=is6w
-----END PGP SIGNATURE-----