1
winsky027 2014 年 2 月 6 日
SDK有一个process回调,不过经测试这个接口返回的值经常大于1,应该是有问题的,为什么一定要进度条?
|
2
loveshouhu 2014 年 2 月 6 日
@winsky027 因为有进度条就知道上传了多少,不会连卡死了都不知道。不知道是不是卡住了,会让很多有强迫症的人很难受的。。。
|
3
leofml 2014 年 2 月 7 日
Bucket.prototype.createPutStream 调用了 dataStream, 你可以重写一下 Bucket.prototype.createPutStream, 给 stream 加上 stream.on('data', function(chunk) {
// Foobar }); https://github.com/IndigoUnited/node-request-progress/blob/master/index.js#L20 这里面的代码有关于 stream 的进度的类似代码. |