#50422 [Bgs]: error uploading file
| From: | jani@php.net | Date: | Wed, 09 Dec 2009 08:19:12 +0000 |
| Subject: | #50422 [Bgs]: error uploading file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145558@lists.php.net to get a copy of this message | ||
ID: 50422
Updated by: jani@php.net
Reported By: syed dot msn at gmail dot com
Status: Bogus
Bug Type: *General Issues
Operating System: windows vista
PHP Version: 5.3.1
New Comment:
Oh, and it's not "temp_name" it's "tmp_name" :)
Previous Comments:
------------------------------------------------------------------------
[2009-12-09 08:18:28] jani@php.net
You have quite likely not enabled "register_long_arrays" directive.
Just use $_FILES always. And preferrably
http://php.net/move_uploaded_file instead of
copy()..
------------------------------------------------------------------------
[2009-12-09 05:51:22] syed dot msn at gmail dot com
Description:
------------
$pic = $_FILES["pic_field"]["name"];
copy($HTTP_POST_FILES["pic_field"]["temp_name"],"")
error ---> "$HTTP_POST_FILES" is undefined, picture name can not be
empty
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50422&edit=1