How to Increase File Upload Sizes at Site5

To increase the maximum filesize you need to set 2 directives:

* upload_max_filesize - Maximum allowed size for uploaded files.
* post_max_size - Maximum size of POST data that PHP will accept.

Generally you should set post_max_size to double what you set upload_max_filesize to. This means you can upload 2 files of your maximum limit for each POST and seems like a good middle ground.

The memory_limit directive should also be set above the value of post_max_size so your server can handle the uploads.
The following came from http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extensi...

There are 2 ways you can set this directive:
php.ini

Edit php.ini and modify these directives:
upload_max_filesize = 128M
post_max_size = 256M
.htaccess

Edit .htaccess and add:
php_value upload_max_filesize 128M
php_value post_max_size 256M

Adjust 128M and 256M with the sizes you require.
Increasing PHP's Memory Limit

You could edit the memory_limit directive in php.ini but I personally like to set that directive on a site-by-site basis. This helps to keep sites that don't need such a large memory_limit nice and efficient.

Instead you can set the directive in settings.php by adding this line just below the other ini_set lines:
ini_set('memory_limit', '256M');

The attached php.ini is from site5's wiki page as of Feb, 2009. I increased the upload_max_filesize to 10M and the post_max_size to 20M.

File Attachment: 

Contact Me

Feel free to contact me.

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.