Skip to content

Commit

Permalink
Merge pull request #8296 from RocketChat/hotfix/s3-download-file-name
Browse files Browse the repository at this point in the history
[FIX] Wrong file name when upload to AWS S3
  • Loading branch information
engelgabriel authored Sep 25, 2017
2 parents dedbaba + 4239eb2 commit da4fe6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rocketchat-file-upload/ufs/AmazonS3/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ export class AmazonS3Store extends UploadFS.Store {
s3.putObject({
Key: this.getPath(file),
Body: writeStream,
ContentType: file.type
ContentType: file.type,
ContentDisposition: `inline; filename=${ file.name }`

}, (error) => {
if (error) {
Expand Down

0 comments on commit da4fe6e

Please sign in to comment.