Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Is there any way to change php's upload_max_filesize setting from settings.php in Drupal 7? This used to work for me in Druapl 6 but no longer seems to. I don't like the idea of doing it in .htaccess, because that's a core file that will get overwritten on an upgrade.

share|improve this question

1 Answer

Personally I would change it in the /etc/php.ini file as it won't be overwritten. You will need to restart apache to see the changes

share|improve this answer
Thanks, was looking for a way to do it on a per-site basis - on my host I keep the limit to 8mb sitewide but up it for certain sites based on circumstance. Using .htaccess for now. – Daniel Feder May 29 '12 at 20:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.