fileupload progress bar in axios
const config = {
onUploadProgress: progressEvent => console.log(progressEvent.loaded)
}
fileupload progress bar in axios
const config = {
onUploadProgress: progressEvent => console.log(progressEvent.loaded)
}
when is onUploadProgressCalled axios
let response = await axios({
method: 'post',
url: imageUploadUrl,
data: {
connectorId,
data
},
onUploadProgress: (progressEvent) => {
const { loaded, total } = progressEvent;
dispatch(updateImageUploadProgress(loaded, total));
},
cancelToken: new CancelToken(token => {
cancelAxiosRequest = token;
})
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us