Urgent: maximum acceptable file size does not change!

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
flavour
Posts: 3
Joined: 2015-03-18 01:03

Urgent: maximum acceptable file size does not change!

Post by flavour » 2015-03-18 01:09

Although my server's php.ini is set to allow 128 MB uploads, AppGinie will not upload files greater them 1 MB, even when I set the maximum acceptable file size to anything greater than that?

Any ideas?

peebee
AppGini Super Hero
AppGini Super Hero
Posts: 356
Joined: 2013-03-21 04:37

Re: Urgent: maximum acceptable file size does not change!

Post by peebee » 2015-03-18 01:26

It will be a server limitation issue - not Appgini. I use Appgini to upload multiple files that are well in excess of 1mb and have never had a fail.

What error are you receiving? What directives are you using in php.ini to increase max upload size? Are those directives working on your server?

Have you tried <? phpinfo(); ?> to check your server limitations?

flavour
Posts: 3
Joined: 2015-03-18 01:03

Re: Urgent: maximum acceptable file size does not change!

Post by flavour » 2015-03-18 02:10

Thanks for the prompt reply.

I get the error inside the application once saving the record: "Error: The file you uploaded exceeds the maximum allowed size of 20000 KB"

The Cpanel PHP info page shows upload_max_filesize of 128 MB However I just tried the <? phpinfo(); ?> and indeed the upload_max_filesize is limited to 2MB!

Is there a way of overcome this or do I have to ask the hosting provider to increase the limit? I am on a shared hosting plan.

Cheers!

peebee
AppGini Super Hero
AppGini Super Hero
Posts: 356
Joined: 2013-03-21 04:37

Re: Urgent: maximum acceptable file size does not change!

Post by peebee » 2015-03-18 05:06

It will depend on your host as to what they allow. Some shared hosts don't allow changes via php.ini. Some shared hosts won't allow you to make ANY changes. You could try the following, otherwise you might have to ask you host for a solution.

You can try php.ini (for 64mb):
upload_max_filesize = 64M
post_max_size = 100M
max_execution_time = 300
max_input_time = 300

or maybe .htaccess
php_value upload_max_filesize 64M
php_value post_max_size 100M
php_value max_execution_time 300
php_value max_input_time 300

PS: I think 128mb is going to be too large for uploads to a shared server in any event. The values above are lowered to 64mb. Hope it works for you.

User avatar
shasta59
AppGini Super Hero
AppGini Super Hero
Posts: 231
Joined: 2013-01-08 19:40
Location: Calgary, Alberta, Canada

Re: Urgent: maximum acceptable file size does not change!

Post by shasta59 » 2015-03-22 00:53

You are best to discuss this situation with your service provider. However I would guess they are going to say 128MB is too large.

It really does not matter what kind of plan you are on the limits are set by the provider for many reasons. They may have a higher priced hosting plan which allows a greater limit.

You can change the ini file but if the provider does not allow more than they will have overrides in place.

Out of curiosity why do you need a 128MB limit?

Also you could consider having the uploads zipped and broken into smaller files then they can be rejoined later when downloaded.

Alan
Calgary, Alberta, Canada - Using Appgini 5.50 -

Post Reply