mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 03:17:11 +00:00
fix: upload replaced media file (#18301)
This commit is contained in:
parent
4a54910f0f
commit
3a1cb32f56
@ -32,6 +32,9 @@ const editAssetRequest = (asset, file, cancelToken, onProgress, post) => {
|
|||||||
onUploadProgress({ total, loaded }) {
|
onUploadProgress({ total, loaded }) {
|
||||||
onProgress((loaded / total) * 100);
|
onProgress((loaded / total) * 100);
|
||||||
},
|
},
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'multipart/form-data',
|
||||||
|
},
|
||||||
}).then((res) => res.data);
|
}).then((res) => res.data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user