Question

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

Was it helpful?

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.

OTHER TIPS

Are you/cakephp setting the ini values inside of a .htaccess file as well? Could be some sort of overriding happening.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top