const conditions = [{ acl: 'public-read' }, ['content-length-range', 0, 10485760]];
const result = <PresignedPostOutput>this.s3.createPresignedPost({
Bucket: this.s3Bucket,
Fields: {
key: uniqueName,
'Content-Type': filetype,
},
Expires: 60 * 5,
Conditions: conditions,
});
const conditions = [{ acl: 'public-read' }, ['content-length-range', 0, 10485760]];
const result = <PresignedPostOutput>this.s3.createPresignedPost({
Bucket: this.s3Bucket,
Fields: {
key: uniqueName,
'Content-Type': filetype,
},
Expires: 60 * 5,
Conditions: conditions,
});