NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 05-23-2007 11:52:11

Nullig
Member

File Size Limitations

I've tried to increase the file sizes for animations and uploads to 2 meg and 2.5 meg respectively, but when I go back into Control Panel it shows 1 meg and 2 meg.

Is this a limitation of the applets? Or can I adjust it through the hacks file?

Thanks,
Nullig

Last edited by Nullig (05-23-2007 11:53:50)

Offline

#2 05-24-2007 03:31:02

Waccoon
Administrator

Re: File Size Limitations

These are hard-coded values built into the control panel, based on the default max HTTP upload size.  They can be overridden, but you have to make sure your server will accept HTTP uploads larger than 2MB.

The problem is that some servers will just throw away large submissions, sometimes without warning, and this can result in lost pictures.  That's why I had to hard-code the limit to 2MB, the standard max size for Apache.

To find out the largest file your server will accept, use the "test_php.php" script in the archive documenation folder, or find out how to get a PHP Info screen from your server's control panel.  Once you're on the PHP Info screen, look for the value "upload_max_filesize".  This is the largest file your server can accept for uploads.  The "post_max_size" value is a bit different, and refers to the total amount of data you can upload, not the size of each file.  This doesn't guarantee you can use larger limits, but it's a fair bet that it will work.

Offline

#3 05-24-2007 11:24:34

Nullig
Member

Re: File Size Limitations

As per phpinfo:

post_max_size = 8M
upload_max_filesize = 5M

So where do I change the defaults, so they will "stick"?

Nullig

Offline

#4 05-25-2007 05:35:07

Waccoon
Administrator

Re: File Size Limitations

That would be in "cpanel.php", at line 73:

$verify_max = array (10000, 50, 500, 10000, 10000, 10000, 10000, 500, 500, 100000000, 1000000, 15000000, 500, 1000, 2000000, 150, 150, 100);

The 1,000,000 is the max anim size, and the 2,000,000 is the max picture size.

Here's a fixed line for your server:

Code:

$verify_max = array (10000, 50, 500, 10000, 10000, 10000, 10000, 500, 500, 100000000, 5100000, 15000000, 500, 1000, 5100000, 150, 150, 100);

Offline

#5 05-25-2007 15:57:25

Nullig
Member

Re: File Size Limitations

Thanks.

Nullig

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB