node-youtube-resumable-upload icon indicating copy to clipboard operation
node-youtube-resumable-upload copied to clipboard

added support for uploading a file stream

Open conor-mac-aoidh opened this issue 9 years ago • 4 comments

I needed the option to pass a readable stream to be uploaded to youtube. To do this, I made edits to provide the Content-Length and Content-Type as arguments.

This is tested and working in my application, but may require further testing.

conor-mac-aoidh avatar Mar 15 '15 19:03 conor-mac-aoidh

Thanks for the pull request, I know that others want this feature as well. Looks good at first glance, going to take a closer look and test it, will get back to you soon.

grayleonard avatar Mar 15 '15 22:03 grayleonard

Please i am getting the following errors while trying to use this module: { [Function: Error] captureStackTrace: [Function: captureStackTrace], stackTraceLimit: 10, prepareStackTrace: undefined }

alexonozor avatar Jun 29 '15 15:06 alexonozor

+1

ghost avatar Feb 25 '16 17:02 ghost

@conor-mac-aoidh is there a reason you always start the upload from scratch by calling initUpload rather than putUpload (aka `send) like the original used to do?

Also, I don't suppose you have an idea how to avoid using streams, and plainly use the file to make a request to self.location? I'm porting this to React Native where streams aren't supported yet.

faceyspacey avatar May 01 '16 00:05 faceyspacey