Thanks for this. Main already has the change, as of 3cb99ced5b79f74628065952098cc1cf2d829f0e.
The same change is already on main in 3cb99ced5b: both native byte counts are converted to numbers before calculating upload progress.
Your regression assertion is included too, so the complete fix has landed and needs no further review here.
Closing as superseded.