Search code examples
google-app-enginewebapp2

Is there a size limit to upload file using webapp2?


I am using appengine and writing my server code in python using webapp2. I am trying to upload video files from browser and save it to Google cloud storage. I use the form element in my HTML and webapp2 handler on server side to upload the file from browser. It works for files of smaller size, but when I try to upload a video file greater than 100MB, the browser throws the blow error

This webpage is not available

ERR_CONNECTION_RESET

I am unable to debug this on server side as it doesn't hit the post method. Is there a config parameter in web app 2 that can be modified to upload files of greater size?

Any inputs is greatly appreciated.


Solution

  • App Engine has a limit of 32MB on all requests. You should upload your files directly to Google Cloud Storage, not through your server. This will also save you a lot of instance time.

    EDIT: As Alex mentioned, signed URLs is a great way to let users upload and download files directly from GCS.