From 5ebb15c458574cf7959d5bb9a75acd8e8e99da94 Mon Sep 17 00:00:00 2001 From: Eric Mill Date: Mon, 20 Oct 2014 03:01:23 -0400 Subject: [PATCH] Also send the byte offset back with the paused event. --- lib/s3-upload-stream.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/s3-upload-stream.js b/lib/s3-upload-stream.js index b715959..2768b46 100644 --- a/lib/s3-upload-stream.js +++ b/lib/s3-upload-stream.js @@ -128,10 +128,12 @@ module.exports = { return true; }; + // when pausing, return relevant pause state to client var notifyPaused = function () { ws.emit('paused', { UploadId: multipartUploadID, - Parts: partIds + Parts: partIds, + Uploaded: uploadedSize }); };