mirror of
https://github.com/outline/outline.git
synced 2026-11-23 06:11:04 +03:00
Merge pull request #788 from Polychain/roman/s3-content-length-range
server: fix content-length-range s3 uplaod policy
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -17,7 +17,7 @@ export const makePolicy = () => {
|
||||
{ bucket: process.env.AWS_S3_UPLOAD_BUCKET_NAME },
|
||||
['starts-with', '$key', ''],
|
||||
{ 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', '$Cache-Control', ''],
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user