is_uploaded_file false if file too big
| From: | Tyson Lloyd Thwaites | Date: | Tue, 06 Mar 2001 04:56:57 +0000 |
| Subject: | is_uploaded_file false if file too big | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42702@lists.php.net to get a copy of this message | ||
Hi,
I am having a problem with is_uploaded file returning false if the
file
uploaded is over a certain size.
I have used ini_set("upload_max_filesize", "8M"), as well as setting
MAX_FILE_SIZE like this:
<INPUT TYPE="hidden" name="MAX_FILE_SIZE"
value="21000000000000">
(ie real big :)
Still, if I try to upload a file over about 2mb, is_uploaded_file
returns false and the $userfile var is empty. Shouldn't it report an
uploaded file even if it is too large?
This is quite annoying as my script uses is_uploaded_file to check if
a
file has been uploaded, and if not it shows an upload form. If I try
to upload a +2Mb file, after a short wait I get the upload form
again.
Any help in fixing this would be appreciated. Here is my setup:
PHP-4.0.5-dev CGI
IIS4/NT4 SP4
Regards,
Tyson Lloyd Thwaites
IT&e Limited
e-Commerce Division
Adelaide
(08) 8346 3888