Does Your “10 MB” Upload Limit Mean the Same Thing Everywhere?
A user chooses a file shown as smaller than the advertised upload limit, but the server rejects it. The frontend team says the file is allowed; the API team says it is too large. Both implementations use the number ten, but they do not use the same unit or measure the same object.
An upload contract should identify the exact byte threshold and what it applies to. The friendly label shown to the user should then match that contract closely enough to avoid misleading boundary cases.
Distinguish decimal and binary units
The NIST reference on binary prefixes defines one megabyte, MB, as 1,000,000 bytes and one mebibyte, MiB, as 1,048,576 bytes. These units are different even when a user interface loosely labels both as megabytes.
For an illustrative limit of 10 MB, the threshold is 10,000,000 bytes. A limit of 10 MiB is 10,485,760 bytes. The difference is 485,760 bytes, enough to create a real disagreement near the boundary.
Do not resolve the disagreement by copying whichever rounded value appears in a file browser. Record the exact byte count supplied by the system and compare it with the contract.
Example: a file between two limits
Consider a synthetic file containing 10,200,000 bytes. It exceeds a 10 MB limit but is below a 10 MiB limit. A frontend using the second interpretation can approve a file that a server using the first interpretation rejects.
The useful fix is agreement on the intended limit, followed by aligned validation and wording. Raising the server limit without understanding the mismatch may merely hide the defect until another boundary appears.
Specify what the threshold measures
Ask whether the limit applies to each file, the sum of files, the complete HTTP request or the expanded contents of an archive. Those are separate quantities.
A request can contain form fields and encoding overhead in addition to file bytes. An archive's uploaded size can also differ greatly from the total size of extracted contents. Give each relevant boundary its own name and policy.
Record the limits at every layer involved in intake: browser validation, application endpoint, proxy or gateway, processing service and storage destination. The effective user experience depends on the restrictive boundary the request encounters.
Build a boundary fixture set
For the chosen per-file threshold, prepare harmless synthetic files one byte below, exactly at and one byte above the boundary. Include a file between the decimal and binary interpretations if that distinction caused the original confusion.
Test both the normal interface and the supported direct API path where relevant. Browser-side validation should help users, but it should not be treated as the only enforcement point.
Review rejection before the user loses work
The error should identify the exceeded limit and preserve the rest of the user's form where possible. “Upload failed” does not tell someone whether to choose a smaller file, reduce the number of files or try again after a temporary problem.
If several files are selected, show which one failed and what happened to the others. A partially successful batch should not be presented as a single undifferentiated failure that encourages duplicate submissions.
Check the displayed size near the threshold. Rounded labels can make a rejected file and the stated maximum appear identical. Where useful, provide enough precision or a clearer explanation to make the rejection understandable.
Keep the limit contract with the integration
Store the exact threshold, unit label and scope in the field or API contract. Link the representative fixtures and observed results so a later gateway or storage change can be checked against them.
If an external destination imposes a lower limit, decide whether the intake should enforce that limit early or support another approved handling path. Do not accept files successfully and discover the incompatibility only after the user believes the task is complete.
Keep file-size checks separate from content validation and security review. A small file can still be unsupported or unsafe, while a large file may be perfectly ordinary but outside the service's capacity policy.
For acceptance, ask the team to show the three byte-boundary fixtures passing or failing consistently through the real intake path. That evidence resolves the contract more clearly than a label saying “up to 10 MB” on its own.
Continue with the related FutureOS guide for the related planning decision.
The published FutureOS introduction describes the project as being in prelaunch. Use this guide to prepare a concrete project discussion; it does not announce an available FutureOS feature.
Prepared with AI assistance. Primary sources checked on October 24, 2026. Examples and procedures are illustrative editorial guidance, not FutureOS product announcements or an independently reviewed assessment.



Comments