Commit b7e2233d authored by chenqikuai's avatar chenqikuai

fix

parent e319cdec
......@@ -164,9 +164,12 @@ export function handleBigFileUpload(
(progressEvent.loaded / progressEvent.total) *
fileChunkPayload.current_size;
console.log(progressLoaded / FILE_SIZE);
onPercentCompleteChange &&
onPercentCompleteChange(progressLoaded / FILE_SIZE);
onPercentCompleteChange(
progressLoaded / FILE_SIZE > 0.9
? 0.9
: progressLoaded / FILE_SIZE
);
}
);
cancelTokenList.push(afterFileUpload.cancel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment