New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Progress bar on upload #1564
Comments
hmm, not sure which package but I'll check. |
Seems the progress.total and progress.loaded are mixed. Tried to go back to alova 2.16.2, but no luck. I've made a workaround and check what value is greater to calculate the percentage. This works in my tests, but it's better to fix the root cause. |
thanks, I'll investigate and try and find what has changed. the workaround is perfect for the time being |
I'm still seeing this error, now and then. I'll re-open and spend some time fixing it. the latest alova lib now exposes event listeners to the upload progress |
I think this is due to the cache setting you've added a few days ago. I've commented it out for me, because i often change the versions and get confsed if changes don't show up. |
good point, will look into that and rollback |
I've removed the cache, will be in next PR. Let's see if it resolves the issue. |
I added an etag for better cache management. But this issue with the progress bar is still there, on Mac OSX (edge) so I need to look into the Alova code again. |
After updating to alova 2.20.0 the progressbar is not shown anymore. |
I'll fix |
I've logged an issue with the Alova team EDIT: it worked in |
Alova team have a fix, waiting for the next release. |
v2.20.2 is out and working. |
I'll test as well |
looks ok to me, I see the progress go from 0 to 100? What am I missing? |
The fix for the wrong direction was this check (same for the % number): EMS-ESP32/interface/src/components/upload/SingleUpload.tsx Lines 91 to 93 in 1487f30
Works, but would be nice if names total and loaded match the meaning.
|
ah yes, I remember we had to hack that. I'll report it Alova. |
I'll make a PR |
In the latest 3.6.4-dev9 the upload progress starts with 350% and counts down to 100%, the bar runs from right to left showing the range 200% - 100%. Only cosmetic, no functioal issue. I have not found a change that causes this. Maybe a updated package?
The text was updated successfully, but these errors were encountered: