How do I create a Google Cloud Storage resumable upload URL with Google Client Library for Java on App Engine? -
i found follow note, describes i'd do:
note: if users uploading resources (writing) access-controlled bucket, can use resumable uploads functionality of google cloud storage, , avoid signing urls or requiring google account. in resumable upload scenario, (server-side) code authenticates , initiates upload google cloud storage without uploading data. initiation request returns upload id, can used in client request upload data. client request not need signed because upload id, in effect, acts authentication token. if choose path, sure transmit upload id on https.
https://cloud.google.com/storage/docs/access-control#signed-urls
however, cannot figure out how google cloud storage library java.
https://developers.google.com/resources/api-libraries/documentation/storage/v1/java/latest/
i can't find reference resumable files, or getting url file anywhere in api. how can this?
that library not expose urls creates caller, means can't use accomplish this. if want use either signed urls or trick mention above, you'll need implement manually.
i advise going signed url solution on solution server initializes resumable upload, if possible. it's more flexible , easier right, , there odd edge cases latter method run into.
someone wrote quick example of signing url app engine while in question: cloud storage , secure download strategy on app engine. gcs acl or blobstore
Comments
Post a Comment