Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
upload large images - not as files
OK. my PHP.ini is modified (values at end of post) All limits are pretty big…but I’m still getting the following error when I try to upload a 4MB image file through the “images” tab: file exceeds limit set in textpattern’s preferences
max_file_size in advances prefs is: 838860800
using 4.0.2. I didn’t think there was a hardcoded size restriction for images in this version.
Any ideas?
Thanks
—
Tom
array(4) { [0]=> string(9) “838860800” [1]=> string(4) “110M” [2]=> string(4) “100M” [3]=> string(3) “80M” }
Offline
#2 2006-01-24 18:38:04
- martinship
- New Member
- From: Santa Fe, NM
- Registered: 2006-01-22
- Posts: 6
Re: upload large images - not as files
I’m using the latest textpattern release as well, but the help still says “Image Uploads are not restricted by this value. The maximum allowed size for images is always ~ 1MB (unless restricted by PHP as explained above).” next to the file size edit bit.
This is in desperate need of a fix or a workaround. If I can’t upload large images in the 4-6 mb range, textpattern will be useless to me.
Offline
Re: upload large images - not as files
Martinship,
Hang tight…there is a thread on how to fix this. I’ll see if I can find it for you.
I’ve got it working perfectly now…I uploaded a 10MB image and it worked fine.
—
Tom
Offline
Re: upload large images - not as files
OK…I can’t find the thread, but here’s what I have in the comments of my site.
I believe it was sencer who gave me this solution, so you know it’s from a good source.
- )
I hope this helps.
In textpattern/lib/txplib_html.php replace
function upload_form($label, $pophelp, $step, $event, $id=’‘, $max_file_size = ‘1000000’)
with (for example):
function upload_form($label, $pophelp, $step, $event, $id=’‘, $max_file_size = ‘4000000’)
P.S. Make sure you have changed all the neccessary values in your php.ini file. I think the values that need changed are listed in the FAQ somewhere.
Last edited by renobird (2006-01-24 18:46:04)
Offline
#5 2006-01-24 18:47:18
- martinship
- New Member
- From: Santa Fe, NM
- Registered: 2006-01-22
- Posts: 6
Re: upload large images - not as files
Thanks for the quick response and the great information!
EDIT: Tested, looks good. :)
Last edited by martinship (2006-01-25 05:39:01)
Offline
Pages: 1