Closed ffxsam closed 2 months ago
Hi @ffxsam - thank you for opening this issue!
I'm able to confirm the behavior and its an un-intended side effect of the current event handling logic between single and multi part uploads. We are currently working on cleaning this up and will update as soon as thats done. In the meantime let me know if you have any questions.
Before opening, please confirm:
JavaScript Framework
Vue
Amplify APIs
Storage
Amplify Categories
storage
Environment information
Describe the bug
At the end of a file upload,
progressCallback
gets called with a nativeProgressEvent
with strange values forloaded
andtotal
.Expected behavior
I wouldn't expect that final
ProgressEvent
.Reproduction steps
See code below.
Workaround
For now, I can check
progress instanceof ProgressEvent
to ignore that last event.Code Snippet
Log output
aws-exports.js
No response
Manual configuration
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response