Search code examples
dockergoogle-app-engine

Google App engine 32MB max request size limit- how to upload large files?


We've got a set up using google appengine with a docker container running a laravel application. Our users need to upload large video files (max 1028MB) to the server which in turn is stored in GCS. But GAE gives an error 413 Request entity too large nginx. I've confirmed this is not an issue on our server configs but a restriction on GAE This is a pretty common requirement. How do you guys get around this?

What i've tried:

  • Chunking using this package https://github.com/pionl/laravel-chunk-upload and dropzone.js to break down the file when sending (Still results in 413)
  • Blobstore API is not applicable for us as we need to constantly retrieved and play the files.

Solution

  • As mentioned by @GAEfan, you can't change this limit on GAE. The recommended approach would be to upload your files to Google Cloud Storage and then process the file from Google Cloud Storage.