@serenity-is/corelib / UploadHelper / fileSizeDisplay
Function: fileSizeDisplay()
fileSizeDisplay(
bytes):string
Defined in: src/ui/helpers/uploadhelper.tsx:145
Formats a byte count into a human-readable size string (KB or MB).
Parameters
bytes
number
The file size in bytes.
Returns
string
The formatted size string.