Re: Browse and Upload file
| From: | Reuben D Budiardja | Date: | Thu, 14 Feb 2002 02:26:43 +0000 |
| Subject: | Re: Browse and Upload file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84687@lists.php.net to get a copy of this message | ||
Thanks. I follow the manual. I changed my php.ini:
upload_tmp_dir = '/home/web/'
which is writable by web (the user running apache/php) and restart apache.
However, after I upload the file, I can't find it. When I do
print_r($HTTP_POST_FILE), here is what I got:
Array ( [userfile] => Array ( [name] => timecard.png [type] => image/png
[tmp_name] => none [size] => 0 ) )
You see that [tmp_name] is none (whatever that means), and size is zero.
why is that?
The webserver and the browser is on local LAN, and there is no firewall.
Thanks for any help.
Reuben D. Budiardja
On Wednesday 13 February 2002 08:38 pm, Lars Torben Wilson wrote:
> On Wed, 2002-02-13 at 17:38, Reuben D Budiardja wrote:
> > Hi,
> > Does anyone know how to upload file using Web Browser as the interface?
> >
> An excellent starting point is the manual section on this topic:
>
> http://www.php.net/manual/en/features.file-upload.php
>
> It is fully explained there, with examples.
>
>
> Hope this helps,
>
> Torben