From 9b98937ed42a4b881717c957653f8aefb10c18c8 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Tue, 29 Sep 2015 17:22:41 -0700 Subject: [PATCH] fix(publish): Send content disposition with S3 files --- build/tasks/publish-nylas-build-task.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/tasks/publish-nylas-build-task.coffee b/build/tasks/publish-nylas-build-task.coffee index 0e52eeadf..244e040a1 100644 --- a/build/tasks/publish-nylas-build-task.coffee +++ b/build/tasks/publish-nylas-build-task.coffee @@ -71,6 +71,7 @@ module.exports = (grunt) -> grunt.log.writeln ">> Uploading #{localSource} to S3…" write = grunt.log.writeln + ext = path.extname(destName) lastPc = 0 new Promise (resolve, reject) -> @@ -80,6 +81,7 @@ module.exports = (grunt) -> Key: destName ACL: "public-read" Bucket: "edgehill" + 'Content-Disposition':"attachment; filename=\"N1#{ext}\"" uploader.on "error", (err) -> reject(err)