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"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]