Re: file upload
| From: | Dave Appleton | Date: | Wed, 22 Nov 2000 04:23:36 +0000 |
| Subject: | Re: file upload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26578@lists.php.net to get a copy of this message | ||
Thoughts....
1) Are you using an ISP for your site? have they messed with the permissions?
2) did you mess with the upload directory path? (see php info)
3) did you mess with php.ini's max file size? (which overrides the hidden tag) (see php info)
4) try killing the \" - it's never needed for spaceless tags
Dave.
At 02:16 PM 22-11-00 +1100, Christian wrote:
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
)
Dave Appleton Calistra ODBC mySQL Administrator Calistra Research Labs http://www.calistra.com/MySQL101A Upper Cross Street #08-17 People's Park Centre Singapore 058357 Tel : 534-0019 Fax : 534-0919