Re: Upload file - $HTTP_POST_FILES empty (thinking in harakiri)
| From: | Robert James Kaes | Date: | Fri, 23 Aug 2002 21:50:03 +0000 |
| Subject: | Re: Upload file - $HTTP_POST_FILES empty (thinking in harakiri) | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113863@lists.php.net to get a copy of this message | ||
On Fri, 23 Aug 2002, Juan Pablo Aqueveque wrote:
> I get the next messages Robert:
>
> Warning: Undefined index: userfile in
> /home/juque/public_html/VI_eaf/upload_tu_destino.php on line 28
> line 28: if (is_uploaded_file($HTTP_POST_FILES ['userfile']['tmp_name']))
Well, first off I would not place a space between $HTTP_POST_FILES and
['userfile'] (in other words it should read
$HTTP_POST_FILES['userfile']['tmp_name'] or better
$_FILES['username']['tmp_name']).
Could you post the complete contents of the file which calls the
upload_tu_destino.php script. Maybe there is something there which is
causing the problem. I would also recommend that you always set
error_reporting(E_ALL) when you're developing your scripts. It makes
tracking down problems much easier. (You can set error_reporting(0) when
you go to production.)
-- Robert
--
------------------------------------------------------------------
Robert James Kaes --- Flarenet Inc. --- (519) 426-3782
http://www.flarenet.com/
* Putting the Service Back in Internet Service Provider *
------------------------------------------------------------------