Bug post_max_size Error

Status
Not open for further replies.

Muzz

Customer
In the ACP I've set zip/rar max file size as 119MB.

I've checked the php configuration on the server and it allows up to 128MB uploads "upload_max_filesize 128M"

So why when I upload a 11MB zip or rar file do I get "Error: The uploaded file exceeds the post_max_size directive in php.ini" ?

I've also tried a .htaccess rule to allow up to 128MB but that didn't work...

Small files upload absolutely fine...

Edit: After searching and searching, realised this is a server side problem and adding a few lines to .htaccess fixed it.

For anyone else having this issue, no matter what you set your upload limit in ACP, php configuration will override this setting. Unless your host is generous enough to allow you to edit your own php.ini file creating a .htaccess file with these lines will fix the problem:

php_value upload_max_filesize 50M
php_value post_max_size 50M

by default I set mine to 50M (50MB) however I believe you may change this value higher/low according to your needs.

Thanks.
 
Last edited:
Status
Not open for further replies.

Legacy vBDownloads

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,716
Customer rating
0.00 star(s) 0 ratings
Back
Top