New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Request Entity Too Large when uploading files to assets

Luigi Foscari February 17, 2021 by Luigi Foscari

When I upload a file bigger than 1MB I receive the "Request entity too large" error. Trying to fix it I set the upload_max_filesize to 10M from 2M and post_max_size to 11M, these values are present in the PHP Info page in CP. The log at storage/log/laravel.log doesn't mention anything about a file upload (not anything recent at all).

I even restarted the server but nothing changed. The site is hosted on a Digital Ocean droplet with a lot of free space (is full by ~25%).

I don't know what else to do honestly, can anyone help me? Thanks in advance.

Answered by Luigi Foscari!
>>>>>>> Answered <<<<<<<
5 Replies
2 Followers