Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-06-15 11:51:38

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Increase the max image upload size?

I must be blind as I’m sure I played with it before but can’t find it. I need to upload an image larger than 500k but the only thing I get is:

.jpg, .gif, .png or .swf graphic files allowed

of course the image is a jpg, so I suspect this is an image size limitation

thanks

Offline

#2 2005-06-15 12:40:14

heikki74
Member
From: Finland
Registered: 2004-08-17
Posts: 100

Re: Increase the max image upload size?

admin -> preferences -> Max Upload File Size ?

Offline

#3 2005-06-15 13:00:52

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: Increase the max image upload size?

nope that’s for files – well i increased that to 20mb and i still sea 500k limit for images

Last edited by sekhu (2005-06-15 13:01:02)

Offline

#4 2005-06-15 15:38:22

domfucssion
Plugin Author
Registered: 2004-10-23
Posts: 39

Re: Increase the max image upload size?

I had to change the php.ini file setting. see:
http://forum.textpattern.com/viewtopic.php?id=6963

Offline

#5 2005-06-15 16:02:12

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: Increase the max image upload size?

really? There’s no way in the admin area to do this? That’s pretty shocking.

thanks for the link I’ll dig and read

Offline

#6 2005-06-15 16:14:51

domfucssion
Plugin Author
Registered: 2004-10-23
Posts: 39

Re: Increase the max image upload size?

I could be wrong, as you can tell from that thread thats all I could work out to fix it, there is probably a better way.

Offline

#7 2005-06-15 18:52:32

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Increase the max image upload size?

Thats because php decides how much by default, and Textpattern can’t override that. Its a security measure.

Offline

#8 2005-06-15 18:57:54

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: Increase the max image upload size?

mary is that correct? With WordPress I was able to increase the size of the image upload to as much as I wanted – I think the max was 10mb, which is PHP’s limit on uploads, so 500k sounds a little lwo by comparison

Offline

#9 2005-06-15 19:58:31

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Increase the max image upload size?

The distributed php.ini has file upload stuff commented out, and the default is 20mb. Was that what you had?

Textpattern and WordPress put in a fail-safe PHP limit (MAX_UPLOAD_FILESIZE) in the upload form itself. WordPress sets the limit with your configured upload setting, while Textpattern sets an arbitrary amount of 900-n-something kb. One reason being so you don’t wait to upload and then get told it was unsuccessful. Neither WordPress nor Textpattern can make the limit in the form higher than your PHP setting, whatever it is.

By comparison, around 500 is lower than both. I googled for that: maybe you’ve got an Apache LimitRequest directive in there somewhere (php.conf)?

Offline

#10 2005-06-15 20:49:48

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: Increase the max image upload size?

hmm i’ll have to look into that – one more reason why ftp upload should be recognised I think, makes the process a lot easier

Offline

#11 2005-09-20 18:52:43

andjules
Member
From: toronto
Registered: 2004-10-20
Posts: 44

Re: Increase the max image upload size?

whoa! never realized this limitation before…
that’s crazy! it’s the first time i’ve been really surprised by an arbitrary limitation with TXP.
for those that want to hack:
textpattern directory > include directory > txp_image.php line 367 in v4.0.0 & 4.0.1 (haven’t checked older ones)
why isn’t this an ‘advanced pref’ just like file upload sizes? advanced prefs are clearly for designer/developer/administrators… my client downloads photos from her digital camera (1.5 MBs+)… I’d sooner she wait for the upload than have to download/install some image editor just to get her photos below 1MB!

Offline

#12 2005-09-21 00:26:37

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Increase the max image upload size?

THe image-stuff is usually used for inline images in posts. Usually people don’t inline images that are > 1MB. For that people can use the files-utility.

I noticed the hard-coding of the value, but using the file-limit was not appropiate, since users want to have mch higer limits for files than they would for images.

I wasn’t aware that people would show > 1MB inline on pages instead of offering downloads. Should this be a regular use-case, i guess we can make this a setting in advanced preferences.

Offline

Board footer

Powered by FluxBB