problem with Drupal max upload using custom php.ini

problem with Drupal max upload using custom php.ini

Posted by: tkoterwas
Posted on: 2009-06-16 07:20:00

I've created a custom php.ini following the instructions in the wiki. I've changed the max upload size to 100M, and using php_info() I see that the max upload size is indeed set to 100M. However, in my Drupal 6 installation, the file upload is restricted to 8M (better than the previous 7M, but are far cry from 100M). To test that the custom php.ini is being used, I changed it from 100M to 4M, and this change was reflected in Drupal. Is the upload size now restricted to 8M system-wide regardless of custom php.ini? Can I assume that since the new setting is reflected in php_info() that there is something Drupal-specific I am not doing correctly, or is it possible that php_info is simply parroting back the php.ini and not taking into account a system-wide restriction? Any insight or advice would be greatly appreciated. Thanks in advance for your time.

Re: problem with Drupal max upload using custom php.ini

Posted by: sXi
Posted on: 2009-06-16 12:28:00

The script might be checking against both post_max_size and upload_max_filesize to determine limits.

Try changing both values in your php.ini




How To Install PHP.INI / ionCube on DreamHost

Re: problem with Drupal max upload using custom php.ini

Posted by: tkoterwas
Posted on: 2009-06-17 06:50:00

Yep. That did the trick. Thank You so much!

Tags: drupalfile upload7mthanks in advancerestrictionwikiinsight