By Relwick · Published
A file-properties panel may show both Size and Size on disk. The larger number can make an otherwise correctly sized upload appear to exceed its limit.
These measurements answer different questions. One describes the file data; the other describes how storage has been allocated for it on that device.
Quick answer & key takeaways
For a limit on the uploaded file itself, compare its actual byte length with the stated limit. “Size on disk” describes storage allocation on a particular filesystem and can differ from the file’s contents. Relwick’s checker uses the selected file’s byte size. Also confirm the destination’s units and whether its limit applies to one file or the complete request.
- Use actual file bytes for a per-file byte limit.
- Disk allocation is not a second image or PDF content size.
- Confirm units and the scope of the destination’s rule.
Understand the two measurements
Microsoft’s file-information documentation distinguishes allocated storage from the end-of-file position. Allocation commonly follows the underlying storage unit, so it need not equal the amount of file data. Different storage features can also affect the relationship.
A browser’s file-size property reports bytes in the selected file. That is the measurement used by Application file checker, rather than a drive-specific allocation value from the operating system.
Work through an allocation example
| Quantity | Example value |
|---|---|
| Actual file data | 50,000 bytes |
| Allocation units needed | 13 units |
| Allocated space | 13 × 4,096 = 53,248 bytes |
The extra allocated space in this example does not add pixels, pages, or data to the upload. Moving the same unchanged file to a differently configured drive can change its allocation without changing the actual bytes that define the file.
Compare against the correct limit
Read whether the destination specifies bytes, decimal KB, binary KiB, or another unit. Keep that unit explicit during the comparison. Do not substitute a rounded properties-panel label when the file is close to a strict boundary.
Also distinguish a file limit from a combined attachment or request limit. The per-file versus total-size guide explains why several individually acceptable files can still exceed a separate overall allowance.
Avoid recompressing for the wrong measurement
If actual bytes meet the stated file limit, do not reduce legibility merely to make Size on disk smaller. Check format, dimensions, and required visible information separately. A storage-allocation difference is not evidence of a defective image.
When a destination still rejects the file, record the exact error and compare its documented rule with the measured output. A local byte check cannot establish every server requirement, but it can prevent troubleshooting based on the wrong storage number.
Frequently asked questions
Does copying a file to another drive necessarily change its upload size?
No. Its allocation may change while its contents and byte length remain the same.
Does Relwick measure the drive’s allocation size?
No. It measures the selected file’s bytes.
Does passing the byte limit guarantee acceptance?
No. The destination may also check format, dimensions, document content, or other rules.
Sources and further reading
- Microsoft: file allocation and end-of-file information — Distinguishes allocated storage size from the byte offset marking the end of a file.
- MDN: Blob and File size in bytes — Defines the browser property used to measure the selected file’s data length.
Summary
Compare the measurement the rule actually concerns. File bytes determine a per-file size check; allocated disk space answers a different storage question.