Add ContentType to uploaded s3 images (SPA)

This commit is contained in:
Tyler Shuster 2020-05-11 10:43:27 -07:00 committed by Logan Allen
parent 0a22b6111a
commit d2c1e5b513

View File

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