Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GAE-S] can't upload zip files #734

Closed
VikramTiwari opened this issue Sep 7, 2018 · 4 comments
Closed

[GAE-S] can't upload zip files #734

VikramTiwari opened this issue Sep 7, 2018 · 4 comments

Comments

@VikramTiwari
Copy link

Using the example here to upload a file works totally fine from local (to gs) but won't work for zip files when deployed to app engine (standard). Only change made to file is to increase the limit to 1 GB on this line.

Attached are the sample zip files:

FL_insurance_sample.csv.zip
SampleZIPFile_10mbmb.zip

Not sure what I am doing wrong.

@VikramTiwari
Copy link
Author

@jasonpolites Any help on this?

@jasonpolites
Copy link
Contributor

App Engine has a 32MB file size (POST BODY) limit (https://cloud.google.com/appengine/quotas, search for "Incoming bandwidth"). We have some docs in Cloud Functions for how to do "large" file uploads that should work in App Engine without much re-work https://cloud.google.com/functions/docs/writing/http#file_uploads_using_cloud_storage

@VikramTiwari
Copy link
Author

VikramTiwari commented Sep 12, 2018

Hey @jasonpolites Neither of the attached files are more than 30MB (including the whole POST body). On such files I am getting the proper error 413 Request Entity Too Large. But for zip files, I am getting the 500 Server Error even for 10kb zip files.

The code I am using is the same as in the example here:
https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/appengine/storage/standard/app.js

Not sure what I am doing wrong. cc: @jmdobry

Gonna try the cloud-functions method.

@VikramTiwari
Copy link
Author

Using signed URLs worked fine. If I get time, I will add a PR for the signed-urls sample for app engine too.
Thanks for all the help @jasonpolites and @jmdobry 👍

Shabirmean pushed a commit that referenced this issue Feb 16, 2023
* test: fix sample test for listJobs

* test: fix sample test for listJobs

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants