cotonti.com : PFS Max filesize limit Question https://www.cotonti.com Last topic posts Cotonti en Wed, 18 Mar 2026 19:23:11 -0000 foxhound # foxhound : On my Cotonti website I can not change the "PFS max size for a single file (KB) :".
I am running a Cotonti site in development and a live running Seditio site on the same server. On the Sedito site I can set it to 8000 without issues (did not try higher).

I have to correct myself.
The difference is with Seditio you can set the value to whatever, but its still limitted by the upload_max_filesize as set by the server.
With Cotonti the limit for filesize will just be equal to the server setting, thats why i could not change it.

I tested it and I found out although I had bigger files allowed for admin we still were not able to upload big files, due to the server set to max 2MB.........sorry for at first confirming something which was no bug after all O:-)]]>
Thu, 18 Mar 2010 21:04:19 -0000
Trustmaster Wed, 17 Mar 2010 15:05:18 -0000 GHengeveld
ini_set('upload_max_filesize', '8M'); 
This will change the value so you don't have to contact the host. You'll have to do this every time, so I suggest putting it in system/common.php (or make a plugin for it with a global hook).]]>
Wed, 17 Mar 2010 09:28:24 -0000
ez
I will ask my provider if they can raise that setting....]]>
Wed, 17 Mar 2010 05:40:27 -0000
Trustmaster Wed, 17 Mar 2010 05:24:56 -0000 ez foxhound: Welke provider gebruik je ? (Zeker XS4ALL)

I found where MY problem is coming from:

To test your server settings make a php file with this code and run it
echo 'post_max_size = ' . ini_get('post_max_size') . "<br />n";
echo 'post_max_size+1 = ' . (ini_get('post_max_size')+1) . "<br />";
echo 'post_max_size in bytes = ' . return_bytes(ini_get('post_max_size')). "<br />";
echo 'upload_max_filesize = ' . ini_get('upload_max_filesize') . "<br />";
echo 'memory_limit = ' . ini_get('memory_limit') . "<br />";

function return_bytes($val) {
    $val = trim($val);
    $last = strtolower($val[strlen($val)-1]);
    switch($last) {
        // The 'G' modifier is available since PHP 5.1.0
        case 'g':
            $val *= 1024;
        case 'm':
            $val *= 1024;
        case 'k':
            $val *= 1024;
    }
   return $val;
}

This was my output:
post_max_size = 8M
npost_max_size+1 = 9
post_max_size in bytes = 8388608
upload_max_filesize = 2M
memory_limit = 128M

And that is where my problem is....
In functions.php there is a function sed_get_uploadmax() that gets some off these vars.
In this case the upload_max_filesize

IS THE CHECK FOR upload_max_filesize REALLY NEEDED ??? OR CAN I DISABLE IT
Because there is a post_max_size size !]]>
Wed, 17 Mar 2010 02:33:52 -0000
foxhound On my Cotonti website I can not change the "PFS max size for a single file (KB) :".
I am running a Cotonti site in development and a live running Seditio site on the same server. On the Sedito site I can set it to 8000 without issues (did not try higher). But on the Cotonti site I can not increase that size for any user.
I can set it lower though (so it saves the settings, but I did clean the cache as well just to be sure).
When you set it lower you can increase it again, but never higher than the initial value.]]>
Wed, 17 Mar 2010 00:10:08 -0000
ez Will try that..

I looked into the code:
'upload_max_filesize', 'post_max_size', 'memory_limit'
Were are these settings normaly made ?

I do not see them in config.php :/

Also there could be a maximum in php.ini? (but I am on a shared server... how can I see this setting in a easy way ???)

Added 5 minutes later:

Hmmmm koradhil.. I tried that... I cleared the cache (No luck).]]>
Tue, 16 Mar 2010 23:51:11 -0000
GHengeveld You could try editing directly in the DB, just to be sure.
If your admin panel changes don't get saved you should purge the internal cache (admin->other->cache).]]>
Tue, 16 Mar 2010 22:57:02 -0000
ez
But is there a limit or so...??
It is now 2048, and i want to change it to 2500, but it doesn't 'remember' my new setting ?

Am I doing something wrong ?]]>
Tue, 16 Mar 2010 03:35:59 -0000