Merge pull request #788 from Polychain/roman/s3-content-length-range
server: fix content-length-range s3 uplaod policy
This commit is contained in:
@ -17,7 +17,7 @@ export const makePolicy = () => {
|
|||||||
{ bucket: process.env.AWS_S3_UPLOAD_BUCKET_NAME },
|
{ bucket: process.env.AWS_S3_UPLOAD_BUCKET_NAME },
|
||||||
['starts-with', '$key', ''],
|
['starts-with', '$key', ''],
|
||||||
{ acl: 'public-read' },
|
{ acl: 'public-read' },
|
||||||
['content-length-range', 0, process.env.AWS_S3_UPLOAD_MAX_SIZE],
|
['content-length-range', 0, +process.env.AWS_S3_UPLOAD_MAX_SIZE],
|
||||||
['starts-with', '$Content-Type', 'image'],
|
['starts-with', '$Content-Type', 'image'],
|
||||||
['starts-with', '$Cache-Control', ''],
|
['starts-with', '$Cache-Control', ''],
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user