Merge pull request #1200 from stalgiag/contentTypeMetaAssetUpload

Add content-type to assets uploaded to s3
This commit is contained in:
Cassie Tarakajian 2019-10-22 17:24:23 -04:00 committed by GitHub
commit d5dfe3937f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');
}