RE: file upload

From: Date: Wed, 22 Nov 2000 19:19:51 +0000
Subject: RE: file upload
Groups: php.general 
Request: Send a blank email to php-general+get-26685@lists.php.net to get a copy of this message
upload_max_filesize directive in php.ini is probably set to something wrong. From your error message, the max file size is 2 bytes, not 2megabytes. Edit php.ini to 3MB, or whatever, Save, and restart Apache. -Ben -----Original Message----- From: Christian [mailto:c_hope@smartchat.net.au] Sent: Tuesday, November 21, 2000 7:16 PM To: php-general@lists.php.net Subject: file upload OK I'm stumped ... For some reason I'm now receiving the following message ... When people are trying to upload small images to my site .. It used to work fine .. Warning: Max file size of 2 bytes exceeded - file [img1] not saved in Unknown on line 0 here is a sample of the code being used .. note: I have adjusted the value up and down with no luck <INPUT type=hidden name=MAX_FILE_SIZE value=\"300000\"> <input type=file name=img3 size=15 > phpinfo() displays the following PHP_POST_FILES["img_1"] Array ( [name] => barkers1.jpg [type] => image/jpeg [tmp_name] => none [size] => 0 ) Any idea what I have done wrong ... Thanx,

« previous php.general (#26685) next »