Created
September 8, 2021 09:49
-
-
Save velotiotech/3683da7f61c099f32b1f19892aa6300e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s3Params = { | |
Bucket: "your-temporary-bucket-name, | |
Conditions : [ | |
["content-length-range",1,31457280] | |
], | |
Fields : { | |
key: "path/to/your/object" | |
}, | |
Expires: 300 //in seconds | |
}; | |
const s3 = new S3({region : process.env.AWSREGION }); | |
s3.createPresignedPost(s3Params) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment