I'm building a web app that needs to let users upload large files. I would like to use Google Cloud Storage. I've spent several days reading the docs, and I'm still not sure how to actually initiate the upload from the browser.
I understand that a signed URL is needed for this purpose (allowing an anonymous user to upload to a bucket), which I can generate on the server and send to the browser.
However, the JavaScript Client Library seems intended to only run on an application server with authentication as a User or Service Account. For example, the @google-cloud/storage package has a method for generating signed URLs, but not for uploading a file using that signed URL.
What am I missing?
PS - These will be big files, so it would be nice to perform resumeable uploads.
UPDATE: From what I can tell (hints here), you just need to PUT or POST to the signed URL. So I guess I should go snag a generic file upload utility that wraps XHR. (Maybe jQuery?)