How can the file upload size allowed by php settings be determined withing a php script?
You can also change that size at runtime using the .htaccess file without the need to change your php.ini file
php_value upload_max_filesize 1224M
php_value post_max_size 1224M
php_value max_execution_time 3000
php_value max_input_time 3000
copy that code and put your file, then store that file with index file then you run your project you also capable to upload 1GB file
for more detail read this article