diff --git a/server/utils/s3.js b/server/utils/s3.js index ffe4867c..1e423390 100644 --- a/server/utils/s3.js +++ b/server/utils/s3.js @@ -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', ''], ],