Open jgautheron opened 6 years ago
still has no answer. So sad
Same problem
Same problem
Any work arounds or solutions for this?
Hello I am having the same issue here.
I am using multipart/form-data to upload an image of ~2mb. I am testing on a very slow connection - the upload takes around 2 minutes. No matter what I set the "interval" value to the callback appears to trigger each time at exactly:
written: 10240 written: 81920
Does anyone have any idea how I can access the upload progress more frequently?
await RNFetchBlob.fetch(
"POST",
url,
{
Authorization: "Bearer access-token",
"Content-Type": "multipart/form-data",
},
formData
)
.uploadProgress({ interval: 50 }, (written, total) => {
console.log(
"uploaded",
written,
total,
Math.round((written / total) * 100) + "%"
);
})
.then((resp) => {
console.log("📤 - Upload Completed");
})
.catch((err) => {
console.log("📤 - Upload error: ", err);
});
I am uploading a file through
multipart/form-data
and getting only once theuploadProgress
event, no matter how I tweak the interval.Issue previously reported here: https://github.com/wkh237/react-native-fetch-blob/issues/177