CodeIgniter Uploading Large Files
Below code use in your php file.
ini_set( 'memory_limit', '200M' );ini_set('upload_max_filesize', '200M'); ini_set('post_max_size', '200M'); ini_set('max_input_time', 3600); ini_set('max_execution_time', 3600);
set below code in .htaccess file
php_value upload_max_filesize 128M php_value post_max_size 128M php_value max_input_time 3600 php_value max_execution_time 3600
Edit my answer after you comment
Update answer
Set config parameter in your stage1 function.
$config['max_size'] = '1000000';$config['max_width'] = '1024000';$config['max_height'] = '768000';
After then try it.
I'm not sure your server accept the ini "upload_max_filesize" property to be modified wit hphp script. By default it can't according to the documentation http://php.net/manual/fr/ini.core.php .
upload_max_filesize | "2M" | PHP_INI_PERDIR | PHP_INI_ALL pour PHP <= 4.2.3.
PHP_INI_PERDIR means that it must be writen in your ini file directly. If you have no controle over php.ini, you will not be able to override this property.