How to Set up Large File Uploads with Laravel on Nginx Server

You may need to allow large file uploads on you Laravel Project. here is how you set up your server.


//SSH into your server
$ php --ini
//Find your php.ini file i.e
sudo nano /etc/php/7.1/php.ini
//Change the Following to allow 100mb uploads
upload_max_filesize = 100M
post_max_size = 100M
//Save your ini file


//Open your conf file
sudo nano /etc/nginx/nginx.conf
//Either Add or edit this to the http { section
client_max_body_size 100m;
//Save your Nginx


$ sudo service nginx reload
$ sudo service php-fpm reload

That's it!!