Heroku Nginx HTTP 413 entity too large -
i'm getting error 413 when uploading 4mb file. have created .user.ini
file on public/
folder. allow 10 mb files
so used client_max_body_size
on nginx.conf
, but still 413.
location / { index index.php; try_files $uri $uri/ /index.php?$query_string; client_max_body_size 10m; }
that configuration because i'm using laravel 5
.
this procfile
web: vendor/bin/heroku-php-nginx -c nginx.conf public/
did wrong?
perhaps bit late, in order fix this, move client_max_body_size 10m;
outside of location section. this:
client_max_body_size 10m; location / { index index.php; try_files $uri $uri/ /index.php?$query_string; }
see https://github.com/heroku/heroku-buildpack-php/blob/beta/conf/nginx/heroku.conf.php#l35 reference on how heroku includes file.
Comments
Post a Comment