When you have problem with uploading large file to your PHP application, try to change below options in /etc/php.ini
;php.ini
max_execution_time = 0 ; unlimited
max_input_time = 0
memory_limit = 8M
;Maximum size of POST data that PHP will accept.
post_max_size = 240M ; Set this value to max upload file size that you want
file_uploads = On
; Maximum allowed size for uploaded files.
upload_max_filesize = 240M ; Set this value to max upload file size that you want
Also, if you use Apache 2.0 (Redhat) check if httpd.conf or /etc/httpd/cond.d/php.conf contains below option
LimitRequestBody 0 ; unit is bytes and 0 means unlimited.
Read More