From e79ab18a0cbc3511d37acc486a8a37537cef1adc Mon Sep 17 00:00:00 2001 From: Stalgia Grigg Date: Mon, 21 Oct 2019 12:54:56 -0700 Subject: [PATCH] Add content-type to assets uploaded to s3 --- client/modules/IDE/actions/uploader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/modules/IDE/actions/uploader.js b/client/modules/IDE/actions/uploader.js index a15d32d7..f2f12585 100644 --- a/client/modules/IDE/actions/uploader.js +++ b/client/modules/IDE/actions/uploader.js @@ -82,7 +82,7 @@ export function dropzoneSendingCallback(file, xhr, formData) { Object.keys(file.postData).forEach((key) => { formData.append(key, file.postData[key]); }); - formData.append('Content-type', ''); + formData.append('Content-type', file.type); formData.append('Content-length', ''); formData.append('acl', 'public-read'); }