cancel
Showing results for 
Search instead for 
Did you mean: 

Can't Upload Files Larger Than 500KB on PHP Form

inventive
Member

HI, 


One of our clients has a hosting account with BT business, 

 

We have set up a website on the account with no issues.


However we can't upload a file larger than 500KB via a PHP form. 


We have tried updated htaccess and PHP.ini via the control panel with no luck, 

 

We have it working no problem on our own servers with files up to 20MB.

 

Please advise if there is anything else we can try.


Thanks in Advance.

1 REPLY 1

Sogo7
Grand Master

Without knowing a little more about the site and what you are trying to do it's hard to say for sure. Some web hosts have the php.ini locked down globally on shared servers to prevent file storage abuse. So I have to ask what on earth are you allowing users to upload that is bigger than 500kb ?

 

anyhow....

 

You may be able to use Flash as a workaround with this: http://soenkerohde.com/2010/01/chunk-file-upload/

or  https://github.com/moxiecode/plupload 

 

NB: circumventing any restrictions imposed by a  web host is very naughty.

 

JQuery also has a number of ready made plugin scripts like Pixastic that can resize images client side in the users web browser before uploading to the server that may be worth exploring further.

 

WordPress has a preset limit hidden here...

wp-config.php -> define('WP_MEMORY_LIMIT', '25M');

Lovelogic.net UK Jobs Scanner