Forums / Cotonti / Support / PFS max size for a single file (KB)

DemptD
#1 2009-03-13 00:58
Whenever i set this to something else it just goes automaticly to "12288"

Is it something with the server or?
urlkiller
#2 2009-03-13 01:21
sound like the same prop i got: http://www.cotonti.com/forums.php?m=posts&p=9750&n=last#bottom

it has something to do with the php.ini filesize settings...
sounds like it is a slight missconfig in the core code. but is already fixed annd submited.
URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
dervan
#3 2009-03-13 06:23
upload maximum size is limited by minimum value from these parameters in php.ini:
upload_max_filesize
post_max_size
memory_limit

note: -1 (? or emty string ?) for memory_limit means that memory is not limited

to avoid any problems like this, check for real upload limit was added to Cotonti 0.0.3, and can't will be configured Cotonti above this limit

please call phpinfo() to see these parameters at your host, or use script:
<?php
$par_a = array('upload_max_filesize', 'post_max_size', 'memory_limit');
foreach ($par_a as $par)
{
	echo "$par = ", ini_get($par), '<br />';
}
?>

if you don't have acсess to php.ini, you can attempts to increase upload limit with directives in .htaccess:
php_value upload_max_filesize value
php_value post_max_size value
php_value memory_limit value