Add content-type to assets uploaded to s3
This commit is contained in:
parent
6f2b3cd15d
commit
e79ab18a0c
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ export function dropzoneSendingCallback(file, xhr, formData) {
|
||||||
Object.keys(file.postData).forEach((key) => {
|
Object.keys(file.postData).forEach((key) => {
|
||||||
formData.append(key, file.postData[key]);
|
formData.append(key, file.postData[key]);
|
||||||
});
|
});
|
||||||
formData.append('Content-type', '');
|
formData.append('Content-type', file.type);
|
||||||
formData.append('Content-length', '');
|
formData.append('Content-length', '');
|
||||||
formData.append('acl', 'public-read');
|
formData.append('acl', 'public-read');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue