file upload problem - Warning: Max file size of 8 bytes exceeded
| From: | Lee Philip Reilly | Date: | Fri, 14 Dec 2001 21:33:08 +0000 |
| Subject: | file upload problem - Warning: Max file size of 8 bytes exceeded | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-77778@lists.php.net to get a copy of this message | ||
Hi,
I have an HTML form containing a file upload form object called 'file'.
When I submit the form (either holiding a path to a 1kb file or a 7MB
file) I get the following error:
-----
Warning: Max file size of 8 bytes exceeded - file [file] not saved in
Unknown on line 0
-----
I had hoped that by changing the upload_max_filesize value in the
php.ini this problem would be resolved, but it hasn't. I expect some
people have had similar problems in the past; can anyone suggest what
the problem is? Some additional info at the foot of this message.
Thanks in advance!
- Best regards,
Lee
Windows 2000; PHP4; Apache V1.3
PHP.INI reads:
-=-=-==-=-=-=-=
; Maximum allowed size for uploaded files.
upload_max_filesize = 8M
-=-=-==-=-=-=-=
Simplified PHP script reads:
-=-=-==-=-=-=-=
if ($file!=""){
@copy("$file", "c:\Program Files\Apache Group\Apache\htdocs\sasdap\v4"
or die ("Could not copy the file.");
}
else {
die("No input file specified");
}
-=-=-==-=-=-=-=
.HTML's file upload name = "file"