You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A similar issue (#3469) published on Dec, 2020 but now marked closed without a clear fix.
Problem: When using onUploadProgress in dev mode you will always have a 100 progress, I've seen this issue in multiple projects.
Note that in production build the progress will be calculated correctly. However, In dev we sometimes need to see the progress to adjust some UI, etc ..
To Reproduce
Calculate the upload percentage using onUploadProgress and display it in dev mode. You will notice always that the progressEvent's progress attribute is a constant 1, and loaded attribute have the final size of the file always, that's why the percentage will always be 100%.
Describe the bug
A similar issue (#3469) published on Dec, 2020 but now marked closed without a clear fix.
Problem: When using
onUploadProgress
in dev mode you will always have a 100 progress, I've seen this issue in multiple projects.To Reproduce
Calculate the upload percentage using onUploadProgress and display it in dev mode. You will notice always that the
progressEvent
'sprogress
attribute is a constant 1, andloaded
attribute have the final size of the file always, that's why the percentage will always be 100%.Code snippet
Expected behavior
No response
Axios Version
1.5.0
Adapter Version
No response
Browser
All
Browser Version
No response
Node.js Version
20.11.0
OS
Windows 11, Android, IOS
Additional Library Versions
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: