I have my backend app deployed on GAE. Inside it, I am having an API which will upload a file to a GCS bucket.
Recently I tried uploading a file of more than 50mb size and got 413 Request entity too large
Did some research and found out that the issue is with ngnix
. The API will give 413
for any file > 32Mb.
Found one solution where it was mentioned to include a ngnix.conf
file and add client_max_body_size 80M
in it.
I did so but still getting the same error.
This is my ngnix-app.conf
file
server{
location / {
client_max_body_size 80m;
client_body_buffer_size 512k;
}
}
Anything obvious that I am missing out here?
app.use(bodyParser.json({limit: '50mb'}));
app.use(bodyParser.urlencoded({limit: '50mb', extended: true}));
– Barrie