Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Add Blobstore-like upload/download operations #49

Open
GabiAxel opened this issue Oct 3, 2016 · 1 comment
Open

Add Blobstore-like upload/download operations #49

GabiAxel opened this issue Oct 3, 2016 · 1 comment

Comments

@GabiAxel
Copy link

GabiAxel commented Oct 3, 2016

Greetings,

Following encouragement to move away from Blobstore, I am trying to use GCS client library for operations I previously used Blobstore for. I would like to have an operation for uploading directly to Cloud Storage and then receiving a callback request to an endpoint in my application, and an operation for creating a short-live public URL for serving a non-public object from Cloud storage.

I know such operations are available with Cloud Storage API and in dedicated libraries, but the Cloud Storage API (and therefore libraries that work with it) are not available in the GAE development server, making it very difficult to develop with.

I would rather not upload/download objects through my application, as it seems an unnecessary trip and drain of the application resources, and really a set back compared to upload/download through Blobstore.

Thanks.

@Capstan
Copy link
Contributor

Capstan commented Oct 9, 2016

The XML API's POST Object method has a success_action_redirect URL that would let your Application receive an update after the upload is complete. It relies on the client browser operating correctly though, and for a better model, you can use Object Change Notification to see any uploads and take action accordingly.

From the notes in storage_api.py at least, it seems that you could interact with the real cloud storage instead even when using the dev appserver. Not exactly sure how that works with Java.

Being able to interact with GCS in something like the AppEngine devserver is a common request, and is on our roadmap. It will likely be analogous to the Cloud Pub/Sub Emulator rather than the dev appserver proper.

/cc @BrandonY

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@GabiAxel @Capstan and others