Closed michaelkirk closed 9 years ago
sometimes when uploading new spot, it fails.
"There was trouble uploading your new Spot."
Inspecting on the API shows this in the nginx logs
2015/06/11 17:35:05 [error] 41#0: *12 client intended to send too large body: 1636056 bytes, client: 172.17.42.1, server: api.biketag.jackpine.me, request: "POST /api/v1/spots.json HTTP/1.1", host: "17867665.ngrok.com"
The solution is this directive: http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
Add it to the server conf block:
client_max_body_size 5m;
sometimes when uploading new spot, it fails.
"There was trouble uploading your new Spot."
Inspecting on the API shows this in the nginx logs
The solution is this directive: http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
Add it to the server conf block: