Signed URL and resumable upload

144 views
Skip to first unread message

Jerome GORIN

unread,
Jan 27, 2013, 4:48:16 AM1/27/13
to gs-dis...@googlegroups.com
Hi,

Does uploading on signed url also supports the resumable upload functionality?

Many thanks,
Jérôme

Google Cloud Storage Team

unread,
Jan 28, 2013, 2:03:18 PM1/28/13
to gs-discussion
Hello Jerome,

Yes we do support resumable uploads on signed URLs, but it requires a little bit of extra work on the server-side.  I've written this up on Stack Overflow for posterity: 

The normal workflow looks like this:
 * Client requests a signature so it can do a PUT
 * Server does authentication and returns a signature
 * Client does PUT with the returned signature

The resumable workflow looks like this:
 * Client requests a signature so it can do a PUT
 * Server does authentication and returns a signature
 * Server makes a POST request to initiate the resumable upload as described here: https://developers.google.com/storage/docs/developer-guide#resumable
 * Server returns both the signature and the upload ID to the client
 * Client does one or more PUTs using the provided signature and upload ID

Benson
Google Cloud Storage Team


--
 
 

Jerome GORIN

unread,
Jan 28, 2013, 2:58:09 PM1/28/13
to gs-dis...@googlegroups.com
Hi benson,

You've reach the posterity, at least for me, dependending on your age :). I'm going to test it.
Do you have a reference implementation in python for the server side?

All the best,
Jérôme

2013/1/28 Google Cloud Storage Team <gs-...@google.com>

--
You received this message because you are subscribed to the Google Groups "Google Cloud Storage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gs-discussio...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Google Cloud Storage Team

unread,
Jan 29, 2013, 6:01:21 PM1/29/13
to gs-discussion
Hi Jérôme,

I do not believe we have a reference implementation yet, although it sounds like a good idea to me.  I'll add that to my list of code samples to consider writing. 

After reviewing my answer on Stack Overflow with a few of my colleagues (answer is here: http://stackoverflow.com/questions/14569203/can-i-do-a-resumable-upload-with-a-google-cloud-storage-signed-url)  I've updated it in an effort to make it easier to understand.  I hope you'll take a look and see if it helps at all. 

Regards,
Benson


To unsubscribe from this group, send email to gs-discussio...@googlegroups.com.

Jerome GORIN

unread,
Jan 30, 2013, 4:03:35 AM1/30/13
to gs-dis...@googlegroups.com
Hi Benson,

I'm current developing the upload to a signed URL process at the client side, but I will come back to you once I start the support for resumable upload. The goal of my question was primarly about whether or not using signed url in my application. Your answer completely matches my expectation and the steps you provided seems pretty understandable to me.

Thanks again,
Jérôme

2013/1/30 Google Cloud Storage Team <gs-...@google.com>

Google Cloud Storage Team

unread,
Jan 30, 2013, 12:49:01 PM1/30/13
to gs-discussion
Hi Jérôme,

You're welcome, and I'm glad you have the information you need. If you have any further questions please don't hesitate to ask. 

Regards,
Benson

Jerome GORIN

unread,
Feb 14, 2013, 7:15:04 PM2/14/13
to gs-dis...@googlegroups.com
Hi, I'm really sorry to come back to you again, but you answered so well to my question that I couldn't resists to.
I'm still implementing the uploading via a put on a signed url using curl. I generate my signed url with generate_url() on a new key with the python boto library, which have this form :


but I always get an accessed denied on google cloud storage.

I'm still wondering what I'm doing wrong. Have you got any clue?

All the best,

Google Cloud Storage Team

unread,
Feb 14, 2013, 7:30:15 PM2/14/13
to gs-discussion
Hi Jérôme,

I'm glad you're comfortable asking questions. I would love to help you, but I'm afraid I need just a little more information to work with. Would you be willing to post this question on Stack Overflow (http://stackoverflow.com) and provide the relevant pieces of your code? That will help me understand what you're doing and answer the question more readily, and will also make it easier for other people having similar difficulties to find help. It will also help me format the code in my response in a readable way. 

If this sounds good, you can send me a note with a link to your question once it's posted. 

Best Regards,
Benson
Google Cloud Storage Team
Reply all
Reply to author
Forward
0 new messages