TTLabs / EvaporateJS

Javascript library for browser to S3 multipart resumable uploads
1.82k stars 206 forks source link

readableFileSize: correct units to bytes not bits #471

Closed theopolisme closed 2 years ago

theopolisme commented 2 years ago

The readableFileSize method returned bit-based unit labels (kilobit, megabit, etc.), but size is measured in bytes. This change updates the units displayed to be consistent with the value used, which is in bytes.

Ref: https://github.com/TTLabs/EvaporateJS/issues/13

jakubzitny commented 2 years ago

Thank you :)