fix(publish): Send content disposition with S3 files

This commit is contained in:
Ben Gotow 2015-09-29 17:22:41 -07:00
parent d821eded89
commit 9b98937ed4

View file

@ -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)