Repository navigation
resumable upload url for browser upload #635
Copy link
Copy link
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
Activity
Can you can persist an authorized gcloud "session" (to reuse the same authorized connection) on your server, that will generate URLs on demand?
var gcloud = require('gcloud'); var gcs = gcloud.storage({ projectId: 'project-id', keyFilename: 'keyfile.json' }); var bucket = gcs.bucket('my-bucket'); var app = require('express')(); app.get('/url/:fileName', function(req, res) { bucket.file(req.params.fileName).getSignedUrl({ action: 'write' }, function(err, url) { res.end(url); }); }); app.listen(3001);
And I'm really sorry for the super long time to respond :( I hope your summer's been well!
- addedtype: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.
on Aug 14, 2015 - added 6 commits that reference this issue
on Aug 22, 2022 - added 2 commits that reference this issue
on Nov 11, 2022 13 remaining items
- added 2 commits that reference this issue
on Jan 28, 2026 - added a commit that references this issue
on Jan 28, 2026 - added a commit that references this issue
on Feb 5, 2026 - added a commit that references this issue
on Feb 17, 2026 - added a commit that references this issue
on Feb 23, 2026 - added a commit that references this issue
on Feb 24, 2026 - added a commit that references this issue
on Feb 26, 2026 - added a commit that references this issue
on Mar 17, 2026
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
hey guys,
i need to upload files to the same bucket from different urls and i would like to avoid creating an actual oauth token for each url. all urls are in the format http://.myapp.com.
right now i am streaming the files through the server and uploading them with the gcloud-node library but its killing my server because the files are too big and its just too much. what i want to achieve now is make the app request an upload url which the server generates and return it to the browser so the javascript app can do the upload without bothering the server and contact the endpoint once the uplaod is done.
my question now is is there a way to request this uplaod url like described here with an actual json keyfile rather than the oauth token?
if this is not an option, will it be possible to request a single oauth token and use that one for all app subdomains i use?
thank you, andreas