node.jsgoogle-app-enginegoogle-cloud-storagelarge-file-uploadapp-engine-flexible

Upload large files through node.js express server, hosted in GAE


I need to upload large(more than 300 MB) file through my node server which is hosted in Google App Engine. I'm able to upload files using xhr.upload and its working fine in local, but in GAE I'm getting 413 - request entity is too large, it seems GAE has a restriction of 32MB for content size.

While exploring, I came across google BlobStore API, but it seems that doesn't support NodeJS.

Can you guys please suggest me which is the best approach for this?

Thanks in advance.


Solution

  • You can upload files up to 5GB in size directly to Google Cloud Storage. There is no need to use (and pay for) your App Engine instance for this task.

    You can do it by setting an upload URL in your file upload form. Look at the Cloud Storage API.