我有些困惑,不知道如何使用axios上传进度事件。实际上,我正在将大量文件存储到AWS S3中。为此,如何获取上传进度?我需要这个函数onUploadProgress
目前我的Post请求是这样的:
export function uploadtoCdnAndSaveToDb(data) {
return dispatch => {
dispatch(showUnderLoader(true));
return axios.post('/posttodb', {data:data},
).then((response) => {
console.log(response.data)
})
}
}