Re: Browse and Upload file
| From: | Lars Torben Wilson | Date: | Thu, 14 Feb 2002 02:31:49 +0000 |
| Subject: | Re: Browse and Upload file | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84689@lists.php.net to get a copy of this message | ||
On Wed, 2002-02-13 at 18:26, Reuben D Budiardja wrote:
> 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
First, check that the file size is less than the max upload size set in
php.ini and/or the upload form.
Second, what version of PHP are you running?
--
Torben Wilson <torben@php.net>
http://www.thebuttlesschaps.com
http://www.hybrid17.com
http://www.inflatableeye.com
+1.604.709.0506