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

Signed Url example? #28

Open
dmccarty opened this issue Feb 22, 2021 · 1 comment
Open

Signed Url example? #28

dmccarty opened this issue Feb 22, 2021 · 1 comment

Comments

@dmccarty
Copy link

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

@dmccarty
Copy link
Author

dmccarty commented Mar 3, 2021

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

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

1 participant