Search code examples
cakephpfile-uploaduploadcakephp-2.1ini-set

cakephp ini_set not working


I want to upload big file in my admin panel but not in every where and public users access to upload big file ,
I use ini_set in my core.php , bootstrap , controller , ... but its not working for me ,
My ini_set is :

ini_set("memory_limit","300M");
ini_set('upload_max_filesize','200M');
ini_set('post_max_size', '20M');
ini_set('max_execution_time', '200');
ini_set('max_input_time','200');

Thanks


Solution

  • Your problem has nothing to do with CakePHP. Values like "upload_max_filesize" cannot be changed using ini_set(). Your question is already answered here.