Decrease Max Upload File Size


#1

Hey Guys,

I’ve been directed to come here for support after posting on the WP support forums.

I’ve updated to the newest RTMedia vs and it’s still allowing uploads up to 64MB. How can I go about limiting it?

I retried the php.ini and it still doesn’t affect your plugin - only modifies WP uploads.

Much thanks in advance!


#2

Can you give debug info? You can find debug info under support tab in rtMedia admin settings.


#3

Hey Ritesh,

Thanks for responding so quick. The debug info is below and I see the php.ini = 64MB. Where would I change that since the php.ini file I created didn't work. I have multisite set up if that makes a difference.

Home URL http://heartfashionweek.com Site URL http://heartfashionweek.com PHP 5.2.17 MYSQL 5.5.33 WordPress 3.8.1 BuddyPress 1.9.2-7798 rtMedia 3.5.2.1 OS Linux Imagick ImageMagick 6.7.6-8 2012-05-02 Q16 www.imagemagick.org GD bundled (2.0.34 compatible) [php.ini] post_max_size 64M [php.ini] upload_max_filesize 64M [php.ini] memory_limit 256M Installed Plugins AdRotate by Arnan de Gans of AJdG Solutions version 3.8.11, rtMedia for WordPress, BuddyPress and bbPress by rtCamp version 3.5.2.1, BuddyPress by The BuddyPress Community version 1.9.2, Jetpack by WordPress.com by Automattic version 2.7, nrelate Related Content by nrelate and SlipFire version 0.52.6 Theme Name Custom Community Theme Version 1.17.3.1 Author URL http://themekraft.com/ Template Overrides plugins/buddypress-media/templates/media/album-gallery-item.php, plugins/buddypress-media/templates/media/album-gallery.php, plugins/buddypress-media/templates/media/album-single-edit.php, plugins/buddypress-media/templates/media/media-gallery-item.php, plugins/buddypress-media/templates/media/media-gallery.php, plugins/buddypress-media/templates/media/media-single-edit.php, plugins/buddypress-media/templates/media/media-single.php, plugins/buddypress-media/templates/media/uploader.php Total Albums 1


#4

I see you are running a website with Nginx webserver, so if you are changing upload limit value in php.ini that is not enough. Please follow the instructions mentioned here https://rtcamp.com/tutorials/php/increase-file-upload-size-limit/. Make sure to reload nginx and php-fpm at the end.

Thanks, --Nitun


#5

Hey Guys, Thanks again for the fast reply.

Unfortunately, the link has directions that are a bit over my head. If you could please clarify for me:

Am I supposed to create a new nginx.config file and then paste the following code into it? Will I save it the same folder where I put the php.ini file? http { #... client_max_body_size 100m; #... }

I'm completely lost in regards to reloading PHP-FPM and NGINX. Is php-fpm another file I have to create? I'm able to adjust the multisite max upload.

Thanks for your patience!


#6