Re: file upload problem - Warning: Max file size of 8 bytes exceeded
| From: | David Serrano | Date: | Sat, 15 Dec 2001 19:02:20 +0000 |
| Subject: | Re: file upload problem - Warning: Max file size of 8 bytes exceeded | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77826@lists.php.net to get a copy of this message | ||
I'm not sure if you've read this or not but it may help:
http://www.php.net/manual/en/features.file-upload.php
-David Serrano (sooprcow@deskmod.com)
"Lee Philip Reilly" <lreilly@lanl.gov> wrote in message
news:3C1A7014.F47F4AAD@lanl.gov...
> 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"
>