- In your Drupal site, go to admin/settings/uploads
- Raise upload limits. If the value you want to insert is greater than PHP allowed value:
- On bottom of your .htaccess file (drupal/.htaccess) add these lines:
# upload settings
# cfr. http://it.php.net/manual/it/function.ini-set.php
php_value post_max_size 50M
php_value upload_max_filesize 50M
php_value memory_limit 128M
Change values as you wish. - Return to admin/settings/uploads and watch changes on PHP limit.
See also:
It works! Thanks, I have been trying to fix that for a while.
FINALLY!!! Someone who has put this in real English! Thank you!
if that doesn’t work, try this:
http://www.samneirynck.be/drupal/howto-increase-drupal-upload-limit-with-a-remote-linux-server
Hi, I’m using a free host (include Apache 2, PHP 5, MySQL 5 and Drupal 6) I set the value in my .htaccess file as you told me. But it didnot work. Drupal threw this message when i was trying tu change the “Default maximum file size per upload” in Upload module config page.
“Your PHP settings limit the maximum file size per upload to 1.46 MB.
Depending on your server environment, these settings may be changed in the system-wide php.ini file, a php.ini file in your Drupal root directory, in your Drupal site’s settings.php file, or in the .htaccess file in your Drupal root directory.”
How can I fix it?
PS: I could not find the php.ini in my root Drupal folder.