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 — Storage write streams should be able to use a pre-existing uri by bhstahl · Pull Request #1322 · googleapis/google-cloud-node

Conversation

@bhstahl

@bhstahl bhstahl commented May 16, 2016

Copy link
Copy Markdown

Allow users to pass through an already existing uri when creating a write stream.

// create resumable url
file.createResumableUpload((err, uri) =>  {
    // hang on to uri somehow
});

// create a new stream with the same uri
const config = { uri };
bucket.file('zebra.jpg').createWriteStream(config);

Closes #1321

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Ben Stahl
Storage write streams should be able to use a pre-existing uri
4eaa832
Closes googleapis#1321
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 16, 2016
stephenplusplus
stephenplusplus reviewed May 16, 2016
View reviewed changes
Comment thread lib/storage/file.js Outdated
}, options);

var uploadStream = resumableUpload({
var config = {

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented May 16, 2016

Copy link
Copy Markdown
Contributor

Thank you! Could you add a line in the jsdocs for:

  • Bucket#upload
  • File#createWriteStream

Something like:

 * @param {string} options.uri - The URI for an already-created resumable
 *     upload. See {module:storage/file#createResumableUpload}.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Ben Stahl added 2 commits May 16, 2016 17:01
Ben Stahl
gcs-resumable-upload will ignore the uri if it is falsy
8df1aa8
Ben Stahl
Add uri parameter to jsdocs
04aeace
@bhstahl

bhstahl commented May 16, 2016

Copy link
Copy Markdown
Author

Ah yes, good call @stephenplusplus. Updated!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Ben Stahl
Add myself to contributors
006754c
@coveralls

coveralls commented May 16, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 006754c on bhstahl:storage-uri into 17e510b on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented May 16, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 006754c on bhstahl:storage-uri into 17e510b on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented May 16, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 006754c on bhstahl:storage-uri into 17e510b on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented May 16, 2016

Copy link
Copy Markdown
Contributor

Coveralls is going crazy again. Sorry I missed this the first time, could you add a test to check that the uri option is passed through to gcs-resumable-upload?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented May 17, 2016

Copy link
Copy Markdown
Contributor

Also, just released [email protected] with URI support -- can you upgrade the package.json to use this new one?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bhstahl

bhstahl commented May 17, 2016

Copy link
Copy Markdown
Author

👍 on it @stephenplusplus

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Ben Stahl added 2 commits May 17, 2016 11:53
Ben Stahl
Bump gcs-resumable-upload package
0fbd22f
Ben Stahl
Ensure a provided uri is passed to gcs-resumable-upload
9a6afeb
@coveralls

coveralls commented May 17, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 9a6afeb on bhstahl:storage-uri into 17e510b on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bhstahl bhstahl mentioned this pull request May 17, 2016
Allow storage write streams to start at an offset #1325
Closed
@stephenplusplus

stephenplusplus commented May 18, 2016

Copy link
Copy Markdown
Contributor

Merged in via 3d6fa8a. Thanks @bhstahl!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus stephenplusplus closed this May 18, 2016
chingor13 pushed a commit that referenced this pull request Aug 26, 2022
@gcf-owl-bot
test(nodejs): remove 15 add 16 (#1322) (#58)
a49c5a4
chingor13 pushed a commit that referenced this pull request Sep 12, 2022
@gcf-owl-bot
test(nodejs): remove 15 add 16 (#1322) (#108)
9faa3f1
chingor13 pushed a commit that referenced this pull request Sep 13, 2022
@gcf-owl-bot
test(nodejs): remove 15 add 16 (#1322) (#58)
a3a68d7
chingor13 pushed a commit that referenced this pull request Sep 14, 2022
@gcf-owl-bot
test(nodejs): remove 15 add 16 (#1322) (#108)
b5fbf85
@sofisl sofisl mentioned this pull request Sep 15, 2022
migrate code from googleapis/nodejs-redis #3360
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Sep 15, 2022
@gcf-owl-bot
test(nodejs): remove 15 add 16 (#1322) (#536)
4cc6c6f
@sofisl sofisl mentioned this pull request Sep 16, 2022
migrate code from googleapis/nodejs-os-login #3366
Closed
4 tasks
sofisl pushed a commit that referenced this pull request Sep 16, 2022
@gcf-owl-bot
test(nodejs): remove 15 add 16 (#1322) (#501)
fc09a57
@sofisl sofisl mentioned this pull request Sep 27, 2022
migrate code from googleapis/nodejs-video-intelligence #3374
Closed
4 tasks
sofisl pushed a commit that referenced this pull request Sep 27, 2022
@gcf-owl-bot
test(nodejs): remove 15 add 16 (#1322) (#660)
d9d4202
Source-Link: googleapis/synthtool@6981da4
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:3563b6b264989c4f5aa31a3682e4df36c95756cfef275d3201508947cbfc511e

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
This was referenced Nov 12, 2022
migrate code from googleapis/nodejs-filestore #3619
Merged
migrate code from googleapis/nodejs-managed-identities #3642
Merged
migrate code from googleapis/nodejs-network-connectivity #3643
Merged
migrate code from googleapis/nodejs-orchestration-airflow #3644
Merged
migrate code from googleapis/nodejs-recaptcha-enterprise #3645
Merged
migrate code from googleapis/nodejs-bigquery-connection #3646
Merged
migrate code from googleapis/nodejs-retail #3648
Merged
migrate code from googleapis/nodejs-security-center #3669
Merged
@sofisl sofisl mentioned this pull request Nov 30, 2022
migrate code from googleapis/nodejs-datacatalog #3689
Merged
4 tasks
@sofisl sofisl mentioned this pull request Jan 10, 2023
migrate code from googleapis/nodejs-dlp #3837
Merged
4 tasks
@sofisl sofisl mentioned this pull request Jan 26, 2023
migrate code from googleapis/nodejs-ai-platform #3892
Merged
4 tasks
This was referenced Sep 13, 2023
migrate code from googleapis/nodejs-automl #4655
Closed
migrate code from googleapis/nodejs-automl #4656
Merged
@miguelvelezsa miguelvelezsa mentioned this pull request Jan 29, 2026
migrate code from googleapis/nodejs-promisify #7059
Closed
This was referenced Feb 2, 2026
migrate code from googleapis/nodejs-logging-winston #7082
Closed
migrate code from googleapis/nodejs-logging-winston #7129
Merged
This was referenced Feb 4, 2026
migrate code from googleapis/nodejs-logging-bunyan #7136
Closed
migrate code from googleapis/nodejs-logging-bunyan #7137
Closed
migrate code from googleapis/nodejs-logging-bunyan #7138
Merged
@GautamSharda GautamSharda mentioned this pull request Feb 5, 2026
migrate code from googleapis/nodejs-error-reporting #7169
Closed
4 tasks
This was referenced Feb 23, 2026
migrate code from googleapis/nodejs-error-reporting #7294
Closed
migrate code from googleapis/nodejs-bigquery-storage #7306
Closed
migrate code from googleapis/nodejs-error-reporting #7308
Merged
@GautamSharda GautamSharda mentioned this pull request Mar 5, 2026
migrate code from googleapis/nodejs-bigquery-storage #7496
Merged
4 tasks
This was referenced Mar 5, 2026
migrate code from googleapis/nodejs-projectify #7511
Merged
migrate code from googleapis/nodejs-paginator #7536
Closed
migrate code from googleapis/nodejs-paginator #7590
Merged
@codyoss codyoss mentioned this pull request Mar 12, 2026
migrate code from googleapis/nodejs-precise-date #7594
Merged
This was referenced Mar 12, 2026
migrate code from googleapis/nodejs-promisify #7595
Closed
migrate code from googleapis/nodejs-promisify #7596
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@bhstahl @stephenplusplus @coveralls @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.