Skip to content

Don't show fractional bytes in file size display#3210

Open
david-crespo wants to merge 1 commit intomainfrom
claude/fix-console-3209-8kliY
Open

Don't show fractional bytes in file size display#3210
david-crespo wants to merge 1 commit intomainfrom
claude/fix-console-3209-8kliY

Conversation

@david-crespo
Copy link
Copy Markdown
Collaborator

filesize's pad: true option pads results like "5 B" to "5.00 B", but
fractional bytes are nonsensical. Add a formatBytes wrapper that
suppresses padding when the unit is bytes, and use it in FileInput and
the image upload progress display.

Closes #3209

filesize's `pad: true` option pads results like "5 B" to "5.00 B", but
fractional bytes are nonsensical. Add a `formatBytes` wrapper that
suppresses padding when the unit is bytes, and use it in FileInput and
the image upload progress display.

Closes #3209
@vercel
Copy link
Copy Markdown

vercel Bot commented May 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
console Ready Ready Preview May 3, 2026 11:13pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fractional bytes don't make sense

2 participants