WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. sweetmelody
    Member
    Posted 10 months ago #

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

    Kindly advise, thank you!

    http://wordpress.org/extend/plugins/buddypress-activity-plus/

  2. ellbristow
    WPMU DEV Support Staff
    Posted 10 months 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.

    http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/

    Hope that helps!

  3. sweetmelody
    Member
    Posted 10 months 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. 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.

    Cheers,
    Ari.

  5. lordgault
    Member
    Posted 9 months 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
    Member
    Posted 9 months ago #


  7. lordgault
    Member
    Posted 9 months ago #

    Hi @lordgault,

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

    lib\external\file_uploader.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 - WPMU DEV
    WPMU DEV Support Staff
    Posted 9 months ago #

    Thanks @lordgault for chiming in and offering assistance.

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

    Cheers
    PC

  9. GearMX
    Member
    Posted 6 months 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
    Member
    Posted 5 months 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.

    Thanks

  11. barf3614
    Member
    Posted 5 months 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:
    http://mydomain.net/wp-content/uploads/2013/11/fileIUploaded.whatever

    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. Jack Kitterhing
    WPMU DEV Support Staff
    Posted 4 months ago #

    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 :)

    Thanks!

    Kind Regards
    Jack.

  13. sftranna
    Member
    Posted 4 months 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
    Member
    Posted 2 months 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
    Member
    Posted 1 month 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.

Reply

You must log in to post.

About this Plugin

About this Topic