mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 07:36:12 +08:00
fix(publish): Send content disposition with S3 files
This commit is contained in:
parent
d821eded89
commit
9b98937ed4
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue