Tech
Fixing 413 request entity to large on laravel + nginx
After deploying my Laravel application to an Ubuntu VPS using Nginx, I encountered this error when uploading a PDF:
413 Request Entity Too Large
The application was running normally, but every upload request failed instantly.
The Cause
The issue wasn't related to Laravel.
By default, Nginx limits the maximum size of the request body. When an uploaded file exceeds that limit, Nginx rejects the request before it reaches your Laravel application.
The Fix
Open ...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to