Skip to content

Commit 1da8b24

Browse files
committed
2 parents eaae0fc + f61f78e commit 1da8b24

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,22 @@ upload.on('error', function (error) {
5858
console.log(error);
5959
});
6060

61-
// Handle progress.
61+
/* Handle progress. Example details object:
62+
{ ETag: '"f9ef956c83756a80ad62f54ae5e7d34b"',
63+
PartNumber: 5,
64+
receivedSize: 29671068,
65+
uploadedSize: 29671068 }
66+
*/
6267
upload.on('part', function (details) {
6368
console.log(details);
6469
});
6570

66-
// Handle upload completion.
71+
/* Handle upload completion. Example details object:
72+
{ Location: 'https://bucketName.s3.amazonaws.com/filename.ext',
73+
Bucket: 'bucketName',
74+
Key: 'filename.ext',
75+
ETag: '"bf2acbedf84207d696c8da7dbb205b9f-5"' }
76+
*/
6777
upload.on('uploaded', function (details) {
6878
console.log(details);
6979
});
@@ -76,7 +86,7 @@ read.pipe(compress).pipe(upload);
7686

7787
### package.client(s3);
7888

79-
Configures the S3 client for s3-upload-stream to use.
89+
Configures the S3 client for s3-upload-stream to use. Please note that this module has only been tested with AWS SDK 2.0 and greater.
8090

8191
This module does not include the AWS SDK itself. Rather you must require the AWS SDK in your own application code, instantiate an S3 client and then supply it to s3-upload-stream.
8292

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"readmeFilename": "README.md",
2727
"main": "./lib/s3-upload-stream.js",
2828
"engines": {
29-
"node": "*"
29+
"node": ">=0.10.x"
3030
},
3131
"scripts": {
3232
"test": "mocha -R spec -s 100 ./tests/test.js"

0 commit comments

Comments
 (0)