Problem with Drupal max upload using custom php.ini

software development

#1

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.


#2

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

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#3

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