Re: Re: How to upload files up to 40MB with a html post form?
| From: | Sergiu Voicu | Date: | Wed, 14 Feb 2007 15:26:34 +0000 |
| Subject: | Re: Re: How to upload files up to 40MB with a html post form? | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248856@lists.php.net to get a copy of this message | ||
Upload limits can be imposed in 2 ways (maybe more, but I know only 2) when it is about Apache+PHP:
1. From apache with LimitRequestBody Directive
2. From php.ini with upload_max_filesize directive
If you are in the first case (which I doubt), and the provider allows the use of .htaccess files, create a .htaccess file in the document root and put this line into it:
LimitRequestBody 42991616
In the second case, and if PHP isn't in safe mode, at the beggining of your script place this line
ini_set("upload_max_filesize","41M");
Cheers
Sergiu
Robert Cummings wrote:
On Wed, 2007-02-14 at 16:51 +0200, Andrei wrote:Which comes back to the original advice (Jay's I think)... get a new provider :B Cheers, Rob.LOL. You got lost in details... To answer the question... You cannot upload files bigger than 10Mbunless your provider changes the values from php.ini (regarding upload file size, form max size and memory max size) and you cannot upload even less than 10Mb files if the time needed to upload it takes longer than 120 seconds.