Image Size (MB) Limit?

This topic contains 2 replies, has 2 voices, and was last updated by  identity 9 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #9941

    identity
    Lifetime Member
    Post count: 445

    Is there a setting to adjust the file size limit for uploads?

    I went to add a test image and got the message:

    File size error. : You tried to upload a image over 2mb

    My server is configured for much larger uploads and I was able to add the same image in a blog post without any issues, so I’m assuming there is a limit set somewhere within GD.

    Where can this be changed?

    If it isn’t a setting in the admin UI, could it be added?

    Cheers,
    Brian

    #9949

    Vikas
    Full Member
    Post count: 1128

    Hi,

    I have added a hook on that limit now, so u can easily add a filter in ur child theme functions.php, it will be available in next release.
    After next release, plz add this code in your theme’s functions.php to change upload limit.

    
    
    
    add_filter('geodir_default_image_upload_size_limit', 'geodir_change_default_image_upload_size_limit') ;
    function geodir_change_default_image_upload_size_limit($limit)
    {
       $limit = '10mb'; // change it as per ur need.
       return $limit;
    }

    Thanks

    #9957

    identity
    Lifetime Member
    Post count: 445

    Thanks. I think it would be better if this could be added to the UI, like under the General tab, but otherwise at least this helps.

    Cheers,
    Brian

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket