Folder size displays wrong unit sometimes: MB instead of GB
Open
Nobody has claimed this yet.
1. to develop
client: 💻 desktop
client: 🤖🍏 mobile
enhancement
feature: files
needs review
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
NC 15.0.0, PHP 7.2
I have found a folder on my Nextcloud that is slightly over 1 GB, and I think it displays wrong.
Shouldn't it show "1 GB", instead of "1.002,1 MB"?

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the folder-size display described in the issue using a folder slightly over 1 GB. Locate the code responsible for formatting folder sizes and check existing tests around unit selection. Done means the displayed unit and value are correct for sizes just over 1 GB, with coverage for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100