Skip to content

Commit 352c180

Browse files
authored
Merge pull request #5 from mediamonks/feature/return-uploaded-keys
Feature/return uploaded keys
2 parents 2c59559 + 29857f2 commit 352c180

File tree

10 files changed

+324
-67
lines changed

10 files changed

+324
-67
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
lib/**/*
22
src/lib/vendor/**/*
33
*.ts
4+
wallaby.js

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-creden
6464
```js
6565
import Uploader from 's3-batch-upload';
6666

67-
await new Uploader({
67+
const files = await new Uploader({
6868
config: './config/configS3.json', // can also use environment variables
6969
bucket: 'bucket-name',
7070
localPath: './files',
@@ -80,6 +80,9 @@ await new Uploader({
8080
},
8181
accessControlLevel: 'bucket-owner-full-control' // optional, not passed if undefined. - available options - "private"|"public-read"|"public-read-write"|"authenticated-read"|"aws-exec-read"|"bucket-owner-read"|"bucket-owner-full-control"
8282
}).upload();
83+
84+
// the files array contains a list of uploaded keys, which you can use to build up the S3 urls.
85+
// e.g. "remote/path/in/bucket/demo.jpg"
8386
```
8487

8588
### S3 Authentication

docs/assets/js/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)