Closed shime closed 10 years ago
Can you show me an example of how you are streaming the multiple files?
If you create two different writable upload streams, and stream two files to their respective writable upload stream then it should work in parallel.
Actually, I figured out what it is..... It was stupid mistake on my part in the documentation and examples I wrote.
The proper usage is to say:
var upload = new s3Stream.upload({
"Bucket": "bucket-name",
"Key": "key-name"
});
I mistakenly had this in the docs:
var upload = s3Stream.upload({
"Bucket": "bucket-name",
"Key": "key-name"
});
The funny thing is that the second form, although incorrect, works great as long as you are only doing one upload at a time, which was what I was doing in the example code as well.
But as soon as you do multiple uploads at once then there are major scope issues without that use of the keyword "new".
Sorry about that. I have fixed the documentation and examples.
Ahh, I thought it was because you were caching the client, so went down that rabbit hole.
That fixes it, thanks!
I'm receiving bunch of errors when trying to stream multiple files in parallel
Are parallel uploads supported?