To increase the max upload size for files on Laravel Homestead edit your main nginx.conf file.

sudo nano /etc/nginx/nginx.conf  

Next, add the config client_max_body_size and set it to 100M. All php.ini files in Homestead already have the setting upload_max_filesize = 100M.

http {
    ...
    client_max_body_size 100M;
} 

Comments

One response to “Set The Max Upload Size of Nginx on Laravel Homestead”

  1. Hi Kevin, it is what I was looking for. You got it fast and to the point. Great. Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get Involved & Explore More

an abstract painting with blue and yellow colors

Catch up on what I’ve been writing lately.

Show your gratitude.

Join Dare To Code Email List

Get emails from me on full-stack PHP development by subscribing to the Dare To Code mailing list.