Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Leppie on August 19, 2010, 08:22:47 AM

Title: jpg upload file size limit
Post by: Leppie on August 19, 2010, 08:22:47 AM
is there a file size limit when uploading jpg/jpeg files in rc3?
i can upload png's in any size without any issues, but jpg/jpeg doesn't seem go much further than 1.5mb.
is there a way to get around this?

many thanks in advance.
Title: Re: jpg upload file size limit
Post by: Leppie on August 20, 2010, 05:11:43 AM
anybody, please?
Title: Re: jpg upload file size limit
Post by: Oranos on August 20, 2010, 08:21:56 AM
What error are you getting when you try to upload a large jpg file?
Title: Re: jpg upload file size limit
Post by: Kays on August 20, 2010, 08:45:38 AM
Hi, something to try.

In Subs-Graphics.php look for:


// Determine whether to resize to max width or to max height (depending on the limits.)


And add the following before it:


@ini_set('memory_limit', '90M');
Title: Re: jpg upload file size limit
Post by: Leppie on August 20, 2010, 10:02:11 AM
Quote from: Oranos on August 20, 2010, 08:21:56 AM
What error are you getting when you try to upload a large jpg file?
there's no error, large jpg's just don't upload.
Title: Re: jpg upload file size limit
Post by: Leppie on August 20, 2010, 10:02:47 AM
Quote from: Kays on August 20, 2010, 08:45:38 AM
Hi, something to try.

In Subs-Graphics.php look for:


// Determine whether to resize to max width or to max height (depending on the limits.)


And add the following before it:


@ini_set('memory_limit', '90M');


thanks, i'll give this a try.
Title: Re: jpg upload file size limit
Post by: Deaks on September 01, 2010, 11:37:20 AM
 Leppie did Kays suggestion help?
Title: Re: jpg upload file size limit
Post by: Leppie on September 02, 2010, 08:10:58 PM
sorry for the late reply, hadn't had much time to try.
but yes, it's working. thanks kays :)