formatFileSize(bytes)
// Format 1500 bytes to a readable size
readableSize = formatFileSize(1500) // "1.46 KB"Syntax
formatFileSize(sizeInBytes)Parameters
Return Value
Description
Examples
Basic Usage
Practical Example with File Listing
Using with File Upload UI
Notes
Last updated