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

Storage write streams should be able to use a pre-existing uri #1321

Closed
bhstahl opened this issue May 16, 2016 · 1 comment
Closed

Storage write streams should be able to use a pre-existing uri #1321

bhstahl opened this issue May 16, 2016 · 1 comment
Assignees
Labels
api: storage Issues related to the Cloud Storage API.

Comments

@bhstahl
Copy link

bhstahl commented May 16, 2016

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);

PR with the enhancement coming shortly!

@stephenplusplus
Copy link
Contributor

Fixed in 3d6fa8a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API.
Projects
None yet
Development

No branches or pull requests

2 participants