Re: Browse and Upload file

From: Date: Thu, 14 Feb 2002 02:57:56 +0000
Subject: Re: Browse and Upload file
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-84693@lists.php.net to get a copy of this message
On Wed, 2002-02-13 at 18:53, Reuben D Budiardja wrote: > Sorry, I meant to include those information. > > Here is from php.ini > ;;;;;;;;;;;;;;;; > ; File Uploads ; > ;;;;;;;;;;;;;;;; > file_uploads = On ; Whether to allow HTTP file uploads > upload_tmp_dir = /home/web > upload_max_filesize = 2M ; Maximum allowed size for uploaded files > > PHP Version 4.0.6 > > One stupid mistake I made was that I put the wrong size for MAX_FILE_SIZE, > but I fixed it now. print_r $HTTP_POST_FILE gives me: > > Array ( [userfile] => Array ( [name] => timecard.png [type] => image/png > [tmp_name] => /home/web/phpZKBTak [size] => 38656 ) ) > > But I still can't find the file at /home/web/. > > Thanks for your help. > Reuben D. Budiardja You need to move the temp file to whereever its final resting place is. i.e. have you done a move_upload_file() on it yet? -- Torben Wilson <torben@php.net> http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506

« previous php.general (#84693) next »