Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

privyreza's avatar

413 Request Entity Too Large - Nginx

I am hosting a laravel site on a digitalocean droplet. When i upload more than 8MB media i am facing the error : 413 Request Entity Too Large

I have changed settings as follows :

  1. /etc/nginx/nginx.conf http block client_max_body_size 250M;

  2. /etc/php/7.0/fpm/php.ini upload_max_filesize = 200M memory_limit = 310M post_max_size = 300M max_execution_time = 24000

After the changes, i restarted nginx and php7.0-fpm

But when i upload media i am getting the same error with the following response headers

http://prntscr.com/gioib7

I am using spatie/laravel-medialibrary to upload chunked files

Thank you

0 likes
0 replies

Please or to participate in this conversation.