BuddyPress Activity Plus
[resolved] How to Set Maximum Upload File Size (15 posts)

  1. sweetmelody
    Posted 2 years ago #

    How can I set a maximum upload file size (image file) to 100k?

    Kindly advise, thank you!


  2. ellbristow
    WPMU DEV Support Staff
    Posted 2 years ago #

    Hi @sweetmelody,

    Maximum upload size is a server/PHP setting that cannot be changed inside WordPress, you need to change the setting on your server.

    A quick Google and I've found the following article for you, which explains how to change the setting... although it might be necessary to contact your hosting provider.


    Hope that helps!

  3. sweetmelody
    Posted 2 years ago #

    This plugin should be easier http://wordpress.org/plugins/wp-image-size-limit/ but I hope Buddypress Activity Plus can add a new feature to limit the maximum upload image size just for the BP users. So the admin or authors of the site can carry on posting larger images to the blog.

    ...wait a minute, according to the your changelog 1.4 'Added image limit define', where can I find the setting, is this the feature where I can limit the maximum upload file size?

    Thank you!

  4. Aristeides Stathopoulos
    Posted 2 years ago #

    Hello there @sweetmelody,
    I believe that define is about the number of images that can be attached in a single post... and if I'm not mistaken the default value is 5.


  5. lordgault
    Posted 2 years ago #

    Go to lib\external\file_uploader.php

    Line 65 var $sizeLimit = 10485760;

    Line 68 function __construct(array $allowedExtensions = array(), $sizeLimit = 10485760){

    just change the limit. to avoid errors uses a byte converter web

  6. MaddieMaddie
    Posted 2 years ago #

  7. lordgault
    Posted 2 years ago #

    Hi @lordgault,

    Where can I find the directory below? Is that MAMP, WordPress, PHP..?


    Thank you :)

    @MaddieMaddie,just inside the Buddypress Activity Plus folder. Go to wp-content\plugin\buddypress-activity-plus\lib\external\file_uploader.php

  8. PC
    Posted 2 years ago #

    Thanks @lordgault for chiming in and offering assistance.

    @MaddieMaddie, did you manage to fix the limit issue ?


  9. GearMX
    Posted 2 years ago #

    Editing the file_uploader.php file settings to limit the maximum upload size works okay for limited scenarios... but is there any way to resize the upload to a smaller image file size on the fly, then delete the original larger file? I will be having most users upload from their mobile phones to a group (which sizes may be in the megabytes per upload). This is a massive hassle if they need to resize before uploading (and I don't think most people will manually do this anyway). Please help. I'm hoping this is in development or someone has a workaround. Thank you very much in advance. This is an awesome plug-in, but I really need this feature. I'm sure others do too.

  10. sftranna
    Posted 2 years ago #

    I attempted to change my limit directly on my server, then in the .htaccess file and then in wp-config.php but neither change worked for me. Then I came across this little snippet http://eaziweb.blogspot.com/2013/08/increase-max-upload-file-size-in.html help me sort the issue.


  11. barf3614
    Posted 2 years ago #

    For loading files myself
    I just accessed this file "/public_html/wp-content/uploads/2013/11"
    I uploaded the file I wanted to this folder through FTP.
    I could access it using a link like:

    Doesn't show up in the media library but it works fine. Will work for an occassional file that's to big that I need to upload but limited still to what others can upload from the blog.

  12. Hi all,

    Thanks for all the additional information and for sharing the various work arounds that have been used for this issue :)

    The solution here http://eaziweb.blogspot.com/2013/08/increase-max-upload-file-size-in.html should work for most.

    As this is a server side thing and not something that can really be set/defined within the plugin.

    We're here to help with any issues :)


    Kind Regards

  13. sftranna
    Posted 1 year ago #

    The solution here http://eaziweb.blogspot.com/2013/08/increase-max-upload-file-size-in.html should work for most.

    this worked most of the time

  14. Pkarkosa
    Posted 1 year ago #

    Aehh guys I tried several solutions.. THAN I figured out I easily can change this settings in my Plesk even I have only a V server....
    But it doesnt means it`s working for you too because all Servers are different...

    Im using plesk on debian 7 with joomla, drupal and wordpress

    Here are the screen shots I made...

    Thank you...

  15. nickaster
    Posted 1 year ago #

    It would seem logical to be able to do this only for some users - ie anyone who's less than an editor. Authors generally have zero understanding as to why that 3 Meg photo is a bad thing to upload. But editors may occasionally have a good reason to go big.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Activity Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic