I get 413 error while uploading 4 MB file. I have already created the .user.ini file in the public/ folder. to allow up to 10 MB files
So, I used client_max_body_size as on my nginx.conf , but I still get 413.
location / { index index.php; try_files $uri $uri/ /index.php?$query_string; client_max_body_size 10M; }
This configuration is due to the fact that I'm using Laravel 5 .
This is my Procfile
web: vendor/bin/heroku-php-nginx -C nginx.conf public/
Did I do something wrong?
source share