#20322 [Bgs]: function is_uploaded_file returns wrong value
| From: | alexf at itechwebdesigns dot com | Date: | Sat, 09 Nov 2002 20:32:11 +0000 |
| Subject: | #20322 [Bgs]: function is_uploaded_file returns wrong value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24405@lists.php.net to get a copy of this message | ||
ID: 20322
User updated by: alexf@itechwebdesigns.com
Reported By: alexf@itechwebdesigns.com
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Win2K
PHP Version: 4.2.3
New Comment:
I'm sorry! I goofed. I passed as the argument to the function,
$_FILE['filename']['tmp_name'] which gave me the result that it should.
DOH! It should have been $_FILES['filename']['tmp_name'].
Previous Comments:
------------------------------------------------------------------------
[2002-11-09 09:57:46] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2002-11-08 19:45:32] alexf@itechwebdesigns.com
According to the documentation, the function "is_uploaded_file" is
supposed to return "true" if successful. However it is returning 0 or
false even though the file upload was successful according to the
$_FILES['filename']['error'] which is present in 4.2.3. I'm going to
assume that the function is returning the value of the error code (in
this case, 0) which is very confusing. The file was uploaded via HTTP
POST. In summary, this function should not return the value of
$_FILES['filename']['error'].
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20322&edit=1