Bug #16426 Updated: $HTTP_POST_FILES['userfile']['tmp_name'] returns "n"
| From: | hholzgra@php.net | Date: | Thu, 04 Apr 2002 11:05:04 +0000 |
| Subject: | Bug #16426 Updated: $HTTP_POST_FILES['userfile']['tmp_name'] returns "n" | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-4011@lists.php.net to get a copy of this message | ||
ID: 16426
Updated by: hholzgra@php.net
Reported By: dom@brainwaveuk.com
-Status: Open
+Status: Analyzed
-Bug Type: Filesystem function related
+Bug Type: Documentation problem
Operating System: Sun raq4, RedHat
PHP Version: 4.1.2
-Assigned To:
+Assigned To: hholzgra
New Comment:
$HTTP_POST_FILES['userfile'] is "none" when
an upload fails (eg. due to size restrictions)
so you should check for
is_array($HTTP_POST_FILES['userfile'])
first
changed to "Documentation problem"
Previous Comments:
------------------------------------------------------------------------
[2002-04-04 06:01:59] dom@brainwaveuk.com
I have had a file upload script working in 4.0.5, but I just upgraded
to 4.1.2 and have been getting problems with the
$HTTP_POST_FILES['userfile']['tmp_name'] variable.
It seems that it always returns 'n' as the temporary filename. I have
tried replacing $HTTP_POST_FILES with the new $_FILES variable, but I
still get the same problem.
It would be great if you can help!!
Thanks guys
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16426&edit=1