From d2c1e5b513d7dfe3a79d382bf3eb3cadd92fa341 Mon Sep 17 00:00:00 2001 From: Tyler Shuster Date: Mon, 11 May 2020 10:43:27 -0700 Subject: [PATCH] Add ContentType to uploaded s3 images (SPA) --- pkg/interface/src/lib/s3.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/interface/src/lib/s3.js b/pkg/interface/src/lib/s3.js index 1fd31ae989..1df4957415 100644 --- a/pkg/interface/src/lib/s3.js +++ b/pkg/interface/src/lib/s3.js @@ -33,7 +33,8 @@ export default class S3Client { Bucket: bucket, Key: filename, Body: buffer, - ACL: 'public-read' + ACL: 'public-read', + ContentType: buffer.type }; return new Promise((resolve, reject) => { if (!this.s3) {