RE: [PHP] FIXED: Max file size for uploads?
| From: | Ford, Mike [LSS] | Date: | Thu, 13 May 2004 08:51:34 +0000 |
| Subject: | RE: [PHP] FIXED: Max file size for uploads? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-186079@lists.php.net to get a copy of this message | ||
On 12 May 2004 16:48, Robert Sossomon wrote:
> It's fixed now..
>
> If using Apache on RedHat here is everything to fix at once:
>
> FIRST AND FOREMOST DECIDE THE MAX SIZE YOU WANT IN MB, ADD A COUPLE
> MORE TO IT, AND THEN CONVERT TO BYTES (MB * 1024 * 1024)
>
> 1. httpd/conf.d/php.conf
> LimitRequestBody ?????????????? #byte size you calculated
>
> 2. /etc/php.ini
> max_file_size = ???M #Max size in MB
> post_max_size = ???M #Max size in MB
post_max_size should be larger than max_file_size, since you need to allow
space for any other fields in the form. If any of your forms have more than
one file upload field, post_max_size should be the appropriate multiple of
max_file_size, plus some overhead. Apache's LimitRequestBody should also be
adjusted accordingly.
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@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211