Skip to content

File size on event tiles except audio player is displayed in kilobyte (kB, 1000 bytes) instead of kibibyte (KB, 1024 bytes) #24866

@luixxiul

Description

@luixxiul

Steps to reproduce

  1. Upload an audio file to an unencrypted room
  2. Open File Panel
  3. Compare the file sizes on audio player and the download link

Otherwise, run cypress test (file-panel.spec.ts) available at matrix-org/matrix-react-sdk#10400

Outcome

What did you expect?

The both values should match.

What happened instead?

The values do not match. The value of the download link is incorrect (the correct value is 3.56 KB).

Screenshot from 2023-03-19 05-24-05

Operating system

Debian

Browser information

Cypress

URL for webapp

localhost

Application version

develop branch

Homeserver

Cypress

Will you send logs?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-File-DownloadA-File-UploadAttachments and file uploadsO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions