Plugin: BuddyPress Media

Join this plugin group to follow comments, support topics and reviews.

Upload Size Limits? (22 posts)

Started 1 year, 2 months ago by: dannypage

  • Profile picture of dannypage dannypage said 1 year, 2 months ago:

    Hi all,
    I have just installed BP Album 0.1.8.8 on 3.1

    I am getting the error “Please upload only JPG, GIF or PNG photos.” But it seems only when uploading larger images. I can upload small images without a problem.

    Any ideas? I assume this is a server restriction? Any help would be much appreciated.

    Site is http://www.classicbikenetwork.com

    Thanks,
    Danny Page

  • Profile picture of mike-seo mike-seo said 1 year, 2 months ago:

    I am also facing this same issue :(

  • Profile picture of naijaping naijaping said 1 year, 2 months ago:

    if anyone is having problem regarding server upload limit, i can help out. i will tell you how to increase the limit

  • Profile picture of dannypage dannypage said 1 year, 2 months ago:

    ok… please tell us.

  • Profile picture of foxly foxly said 1 year, 2 months ago:

    @dannypage
    @naijaping
    @mike-seo

    What that means is they changed something in WP 3.1 or BP 1.2.8 so that the correct error message isn’t getting sent back to bp-album. In otherwords, “Please upload only JPG, GIF or PNG photos.” really means “Please upload only JPG, GIF or PNG photos, under X megabytes in size”, where “X” is the max upload file size for your site.

    You can change it on the bp-album admin menu, but you also have to set it on the WP admin menu. It uses the LOWER of the two settings.

    ^F^

  • Profile picture of dannypage dannypage said 1 year, 2 months ago:

    @foxly

    Thanks for the reply.

    I cannot find a size limit on the bp-album or in the wp-admin? I can only find the x and y pixel resizing and number of images.

    I have been told about adding a php.ini file but cannot seem to get that to work either..

    Am I missing something?

    Thanks,
    Danny

  • Profile picture of dannypage dannypage said 1 year, 2 months ago:

    Hi All,

    Just thought I would post my findings, I created the php.ini file in the root and although it did change the media upload size in wordpress, it did not work for BP Album. I have put the same php.ini file into the bp-album file and that has solved the issue!

    php.ini file contains:

    wp_memory_limit=128M;
    upload_max_filesize=128M;
    post_max_size=20M;

    Thanks for all of your help
    @naijaping
    @mike-seo
    @foxly

  • Profile picture of dba2k10 dba2k10 said 1 year, 2 months ago:

    For anyone having these issues without the BuddyPress Media plugin : I downgraded buddpress to 1.2.7 and that was simply the easiest fix.

  • Profile picture of dannypage dannypage said 1 year, 2 months ago:

    @foxly

    Unfortunately the issue was not completely solved. I read elsewhere that there is a problem when uploading .JPG images but not .jpg

    The lowercase does work. Any way to solve this?

    Thanks,
    Danny

  • Profile picture of foxly foxly said 1 year, 2 months ago:

    @dannypage

    I just posted a fix on the SVN trunk. If you replace the file called “bp-album-screens.php” with this one, it should correctly handle files with upper-case extensions.

    Thanks!

    ^F^

  • Profile picture of polkin polkin said 1 year, 2 months ago:

    @foxly

    Hi, I have replace bp-album-screens.php with this one.
    When I have loaded a picture bp writes that the picture is loaded, but it is not visible

  • Profile picture of foxly foxly said 1 year, 2 months ago:

    @polkin

    You probably need to use the URL Re-mapper feature of the plugin.

    ^F^

  • BTW, if you are getting the “Please upload only JPG, GIF or PNG photos.” when users try to upload an avatar image with an uppercase extension, you need to change line 525 in /plugins/buddypress/bp-core/bp-core-avatars.php to:

    if ( ( !empty( $file['file']['type'] ) && !preg_match('/(jpe?g|gif|png)$/i', $file['file']['type'] ) ) || !preg_match( '/(jpe?g|gif|png)$/i', $file['file']['name'] ) )

    @foxly:
    In your fix, shouldn’t you be using $_FILES instead of $file at line 315?

  • Profile picture of friederb friederb said 11 months, 2 weeks ago:

    thanx for the listing from dannypage – helped me a lot with bp-group-documents!

    it works but I couldn’t upload documents larger than 10Mb – until I found your script for bp-album and used it for bp-group-documents … now I have successfully uploaded a file with 50Mb to bp-group-documents!

    Create the php.ini file in the root-folder and put the same php.ini file into the bp-group-documents-folder!

    php.ini file contains:

    wp_memory_limit=10000M;
    upload_max_filesize=10000M;
    post_max_size=2000M;

    ps: buuut ((( – didn’t work with another file of 450Mb – anybody has an idea what that could be?

  • Profile picture of foxly foxly said 11 months, 2 weeks ago:

    @friederb

    What, precisely, are you uploading that requires 450MB files?

    ^F^