You need chunked uploads.
This plupload package support chunked uploads: https://github.com/jildertmiedema/laravel-plupload
How to upload files up to 1 GB or more? I use homestead
You need chunked uploads.
This plupload package support chunked uploads: https://github.com/jildertmiedema/laravel-plupload
@willvincent do you also have to change a nginx configuration in Homestead?
I don't believe so, file chunking happens on the client side
i get this error when i try to upload file more than 100MB "The connection was reset The connection to the server was reset while the page was loading. The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer's network connection. If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web."
nginx?
Add this to the nginx config and you should be good for up to 2GB uploads without chunking.. but chunking is probably better.
client_max_body_size 2000M;
client_body_buffer_size 128k;
in Homestead, that file will be /etc/nginx/nginx.conf
Add those lines in the 'basic settings' section near the top.
http {
##
# Basic Settings
##
client_max_body_size 2000M;
client_body_buffer_size 128k;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
still not working.
You cant upload a 1 GB file without chunking the file because the browser cant upload those big files, regardless if you increase the nginx upload file size.
As @willvincent said - you need chunked uploads.
You could also check the various upload/post configs in the php config file in /etc/php5/fpm/php.ini. 'upload_max_filesize' and 'post_max_size' are worth checking. They can also be over-written by an .htaccess file - you'd have to check that too.
still not working.
Did you restart nginx after making the change?
Also as @ohffs mentioned, you need to be sure the upload and post max size settings for php are set large enough as well..
But really, you should be implementing chunked uploads. That's really the end of the story.
Please or to participate in this conversation.