Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I cannot find where you can change the maximum file size when uploading bulletins. Can someone point me there? thanks
Comments
Comment #1
drupalninja99 CreditAttribution: drupalninja99 commentedYou're php ini settings enforce max upload size.
Comment #2
clcheatw CreditAttribution: clcheatw commentedI am not seeing this in my php.ini. What do I need to add to this file to change the max upload size?
Comment #3
drupalninja99 CreditAttribution: drupalninja99 commentedupload_max_filesize I believe
Comment #4
clcheatw CreditAttribution: clcheatw commentedI did not have a php.ini so I created one with the following text:
[PHP]
upload_max_filesize = 10M
and put it in the root directory of the drupal site and it still will not allow a file larger than 2 megs.
Comment #5
drupalninja99 CreditAttribution: drupalninja99 commentedYou can do ini_set('upload_max_filesize', '10'); in your settings.php and it should override the php.ini setting. That is what most ppl do when they don't have access to php.ini, I think there's also an .htaccess way of doing it.
Comment #6
clcheatw CreditAttribution: clcheatw commentedI added that line to my settings.php in the /sites/default folder and I am still unable to upload a bulletin larger than 2 mb
Comment #7
drupalninja99 CreditAttribution: drupalninja99 commentedSo method 1 is to change these 2 settings in php.ini or in settings.php
In settings.php you would use the ini_set() function. This doesn't always work however (php.ini method does). And so there is a second method and I know this works. You would add this to your .htaccess file:
Now I believe the "IfModule mod_php5.c" tag in .htaccess already exists so you are just appending this. I've done this before and it should work.