mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 10:23:34 +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 }) {
|
||||
onProgress((loaded / total) * 100);
|
||||
},
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
}).then((res) => res.data);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user