Steady-Entertainment's avatar

413 Request Entity Too Large nginx/1.19.0

Hello guys,

I get this error when I try to upload a 250mb big file

my php() info is configured correctly

upload_max_filesize	2000M	2000M

post_max_size	2000M	2000M

I also configured my nginx

sudo vim /usr/local/etc/nginx/nginx.conf
 client_max_body_size 512M;

i also chnaged the

/usr/local/etc/php/8.0/conf.d/php-memory-limits.ini

I also went to

~/.config/valet/Nginx

and changed my site specific config to:

 client_max_body_size 2000M;

I think valet might have a per site definition

but i could not find the correct place to adjeust this configuration

any ideas are welcome

I did all of this

https://www.dorelljames.com/blog/laravel-valet-increase-max-upload-file-size/

0 likes
2 replies
Steady-Entertainment's avatar

apparently it is not enought o just restart php and nginx with valet but you have to restart computer dont know why

Please or to participate in this conversation.