QubitProducts / gcs-browser-upload

Resumable chunked uploads to Google Cloud Storage from the browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Signed Url example?

dmccarty opened this issue · comments

I apologize for this - I have been doing resumable file uploads from Ruby and moved the code to the browser but using Ruby to generate the signed url.

If I simply generate a signed url the javascript code will work - but not append the chunks to the file, it simple overwrites it. If I generate resumable upload url I get a CORS error immediately. Could you point me to an example in Javascript of generating one?

I am bit confused. When I coded it in Ruby I did an initial POST with the signedurl and then uploaded to the location returned. Im not quite seeing that in the javascript and have tried URLS from various steps in my Ruby process but none of them work. I am obviously missing something.

Thank you

I figured this out - the resumable url generated on the server needed to include the location of the browser in the post to obtain the resumable url