Re: Re: move_uploaded_file > 1MB
| From: | Maur�cio Valente | Date: | Mon, 09 Jun 2003 21:28:46 +0000 |
| Subject: | Re: Re: move_uploaded_file > 1MB | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150806@lists.php.net to get a copy of this message | ||
Another thing a noticed was that when I comment the line wich uploads the
file, it still give me the same error, saying server was not found.
I think, maybe, the amount of memory enabled for each object of the form is
limited by 1Mb. I got that idea because I use the following script:
print "path: $fupload<br>\n";
print "name: $fupload_name<br>\n";
print "size: $fupload_size bytes<br>\n";
print "type: $fupload_type<p>\n\n";
if ( $fupload_type == "image/gif" )
{
copy ( $fupload, "$file_dir/$fupload_name") or die ("Couldn't copy");
}
The fupload is the file object from the previous form page. Maybe if that
object cannot be more than 1mb so it shows that page.
Is it right or I am going crazy with it???
If so (i'm right :) ), where can I change it? I tried to set
LimitRequestFieldSize to 10240000000 but when i restarted Apache it said
Iniciando httpd: Syntax error on line 139 of /etc/httpd/conf/httpd.conf:
LimitRequestFieldsize "10240000000" must not exceed the precompiled maximum
of 8190
If this is the way i have to go... what can I do?
Thaks!!!
Maurício Valente
"Mike Ford" <M.Ford@lmu.ac.uk> escreveu na mensagem
news:841D90E489448A4F804E1D1B95768BF7D460CB@lis-exchange3.lmu.ac.uk...
> -----Original Message-----
> From: Maurício Valente [mailto:mauricio@agp5.com.br]
> Sent: 05 June 2003 21:56
>
> I couldn't find the option max_body_request somebody knows
> where it is?
There's no such option -- you could be looking for post_max_size in php.ini,
or the LimitRequestBody directive in Apache's httpd.conf or a .htaccess
file.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211