[FIX] Wrong file name when upload to AWS S3

pull/8296/head
Rodrigo Nascimento 8 years ago
parent fee446aea7
commit 4239eb2a39
No known key found for this signature in database
GPG Key ID: CFCE33B7B01AC335
  1. 3
      packages/rocketchat-file-upload/ufs/AmazonS3/server.js

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

Loading…
Cancel
Save