Open Robinnnnn opened 7 years ago
s3Params: {
Bucket: "config.aws.s3Bucket",
Prefix: "Library",
// other options supported by putObject, except Body and ContentLength.
// See: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putObject-property
}
I have a local folder,
/build
, that I would like to upload to a folder within an S3 bucket, entitledLibrary
.Placing individual files into the Library folder is easy:
However, I'm not sure how to configure the params to upload the contents of a directory into a folder within a bucket. I've tried this:
The upload is successful, but the contents end up at the root of the bucket rather than inside the folder. In other words, the
Key
feature doesn't seem to work when it comes to directories.