Re: Browse and Upload file
| From: | Reuben D Budiardja | Date: | Thu, 14 Feb 2002 13:56:37 +0000 |
| Subject: | Re: Browse and Upload file | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84733@lists.php.net to get a copy of this message | ||
Aha.... Yes, it works fine now. Again, thanks a lot.
Rdb
On Thursday 14 February 2002 12:18 am, you wrote:
> On Wed, 2002-02-13 at 19:18, Reuben D Budiardja wrote:
> > Yes, I have. I follow the example exactly from
> > http://www.php.net/manual/en/features.file-upload.php.
>
> Well, that's the problem then. The example in the manual is buggy. :)
>
> > uploadPic2.php:
> > <?
> > print_r($HTTP_POST_FILES);
> > move_uploaded_file($HTTP_POST_FILES['userfile'], "/home/web/final");
>
> The above line should read:
>
> move_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'],
> "/home/web/final/some_file_name.jpg");
>
>
> Hope this clears it up for you.
>
> Torben