Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-09-13 08:50:53

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 535

Problems uploading files via Textpattern's File tab

I’m running Textpattern version: 4.4.1 (r3575) on a Windows virtual server with a WAMP setup using Apache 2.2.17, PHP 5.3.5 and MySQL 5.1.52.

In Textpattern’s Preferences I have the Maximum file size of uploads (in bytes) set to 99999.

Some of the files I need to upload are nearly 20mb in size. When attempting to upload them Textpattern crashes out of the File area into the Write area without any error messages. Today I’ve been trying to upload a 1.2mb zip file but I keep getting the error message File exceeds the maximum size specified in Textpattern’s preferences.

Offline

#2 2011-09-13 09:32:40

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: Problems uploading files via Textpattern's File tab

Algaris wrote:

In Textpattern’s Preferences I have the Maximum file size of uploads (in bytes) set to 99999.

TXP is doing what you tell it to. You’d need three more 9s for a 20 MB file.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2011-09-13 09:32:57

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,596
Website

Re: Problems uploading files via Textpattern's File tab

You need a few more 9s: 99999 bytes = just under 100 kB.


TXP Builders – finely-crafted code, design and txp

Offline

#4 2011-09-13 09:50:22

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 535

Re: Problems uploading files via Textpattern's File tab

Thank you Uli and Jakob. Bytes to Megabytes confuses me. I think there was some confusion between myself and the IT Department who set the server up for me.

That calculator will come in very handy.

Offline

#5 2011-09-13 10:07:43

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 535

Re: Problems uploading files via Textpattern's File tab

Next question on the same subject. According to the IT Department they’ve changed my file upload size to 900mb (943718400). Whenever I try changing this in the preferences it keeps resetting back to 2mb (2097152). I’ve checked with them the settings in php.ini for upload_max_filesize and it has been set to 900m.

Last edited by Algaris (2011-09-13 10:18:37)

Offline

#6 2011-09-13 11:27:14

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Problems uploading files via Textpattern's File tab

They increased post_max_size too? That will need to be upped too when dealing with uploads over HTTP POST.

If htaccess files, and setting PHP configuration values from them, is allowed, you could (and I would highly recommend) placing .htaccess file to your textpattern directory with following contents:

php_value upload_max_filesize 30M
php_value post_max_size 30M
php_value memory_limit 64M

Algaris wrote:

According to the IT Department they’ve changed my file upload size to 900mb (943718400).

900 MB and server wide? I don’t think that’s the best idea ever.

Offline

#7 2011-09-13 18:22:46

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Problems uploading files via Textpattern's File tab

AFAIK for such big files it’s better to FTP them to the files directory and then import them by choosing ‘Existing file’ in the Files tab.

Offline

Board footer

Powered by FluxBB