From ccd558c550b707e9c4f82db053b499232bd16844 Mon Sep 17 00:00:00 2001 From: Emil Guareno Date: Wed, 16 May 2018 23:14:55 -0700 Subject: [PATCH] Allow expire time to be passed in as option --- s3router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3router.js b/s3router.js index 6141e66..1d6719e 100644 --- a/s3router.js +++ b/s3router.js @@ -90,7 +90,7 @@ function S3Router(options, middleware) { var params = { Bucket: S3_BUCKET, Key: fileKey, - Expires: 60, + Expires: options.expires || 60, ContentType: mimeType, ACL: options.ACL || 'private' };