News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

jpg upload file size limit

Started by Leppie, August 19, 2010, 08:22:47 AM

Previous topic - Next topic

Leppie

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.

Leppie


Oranos

What error are you getting when you try to upload a large jpg file?

Kays

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');

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Leppie

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.

Leppie

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.

Deaks

 Leppie did Kays suggestion help?
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Leppie

sorry for the late reply, hadn't had much time to try.
but yes, it's working. thanks kays :)

Advertisement: