GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — resumable upload url for browser upload · Issue #635 · googleapis/google-cloud-node

resumable upload url for browser upload #635

New issue
Copy link
New issue
Copy link
Closed
Closed
resumable upload url for browser upload#635
Copy link
Assignees
stephenplusplus
Labels
api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Description

@aschmid
aschmid
opened on Jun 1, 2015
Issue body actions

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

Activity

Next
  1. stephenplusplus commented on Aug 14, 2015

    @stephenplusplus
    stephenplusplus
    on Aug 14, 2015
    Contributor
    More actions

    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);
  2. stephenplusplus commented on Aug 14, 2015

    @stephenplusplus
    stephenplusplus
    on Aug 14, 2015
    Contributor
    More actions

    And I'm really sorry for the super long time to respond :( I hope your summer's been well!

  3. stephenplusplus
    added
    type: questionRequest for information or clarification. Not an issue.
    api: storageIssues related to the Cloud Storage API.
    on Aug 14, 2015
  4. stephenplusplus commented on Sep 17, 2015

    @stephenplusplus
    stephenplusplus
    on Sep 17, 2015
    Contributor
    More actions

    Hey @aschmid, I'm going to close this one out. Hopefully the above solution will work or one from #641.

  5. stephenplusplus
    closed this as completedon Sep 17, 2015
  6. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  7. chingor13
    added 6 commits that reference this issue on Aug 22, 2022

    feat: support regapic LRO (#635)

    022d385

    chore(main): release 4.1.0 (#636)

    8a0fe8f

    feat: support regapic LRO (#635)

    e930e29

    chore(main): release 4.1.0 (#636)

    3777296

    feat: support regapic LRO (#635)

    67a58e8

    chore(main): release 4.1.0 (#636)

    13f9789
  8. sofisl
    added 2 commits that reference this issue on Nov 11, 2022

    fix: update JS and TS protos (#635)

    60eec08

    feat: support regapic LRO (#635)

    637c293
  9. 13 remaining items

  10. sofisl
    added 2 commits that reference this issue on Jan 28, 2026

    chore: release 4.0.1 (#635)

    2afe4e9

    chore: release 4.0.1 (#635)

    885a128
  11. miguelvelezsa
    added a commit that references this issue on Jan 28, 2026

    chore(deps): update dependency @types/sinon to v9 (#635)

    564b7df
  12. GautamSharda
    added 2 commits that reference this issue on Feb 2, 2026

    chore(cloud-rad): delete api-extractor config (#635)

    e4c34ac

    chore(cloud-rad): delete api-extractor config (#635)

    0b5ab5c
  13. sofisl
    added 2 commits that reference this issue on Feb 4, 2026

    migrate code from googleapis/cloud-profiler-nodejs (#7087)

    288deb4

    chore(deps): update dependency @types/sinon to v9 (#635)

    a6d8ee6
  14. GautamSharda
    added a commit that references this issue on Feb 5, 2026

    fix service name presentation in README (#635)

    6308f0b
  15. sofisl
    added a commit that references this issue on Feb 17, 2026

    chore(deps): update dependency @types/sinon to v9 (#635)

    fba42c1
  16. GautamSharda
    added a commit that references this issue on Feb 23, 2026

    fix service name presentation in README (#635)

    1505b5c
  17. sofisl
    added a commit that references this issue on Feb 24, 2026

    build: updated kokoro config for coverage and release-please (#635)

    8497f8e
  18. GautamSharda
    added a commit that references this issue on Feb 26, 2026

    fix service name presentation in README (#635)

    a18c8b9
  19. GautamSharda
    added 2 commits that reference this issue on Mar 11, 2026

    chore(deps): update dependency typescript to ~3.5.0 (#635)

    7bc9e79

    chore: clean up Node.js TOC for cloud-rad (#635)

    95d98a1
  20. sofisl
    added a commit that references this issue on Mar 17, 2026

    chore(deps): update dependency @types/uuid to v10 (#635)

    81a6572
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.