When I first built the download page on ramrom.io, the quality dropdown was simple: 1080p, 720p, 480p, 360p. Pick one, get the file. It worked, and nobody complained. But I kept noticing something in my own use: I would pick 1080p on my phone, then watch the download crawl, then wish I had picked 720p instead. The label had told me the resolution, but not the one thing that decides whether a download is a good idea right now — how big the file actually is.

So I added file size labels. It sounds like a five-minute job. It was not, because the honest version of it is harder than the quick version.

The quick version is to guess. A 1080p video is roughly so many megabytes per minute, so you multiply the duration by a bitrate you made up and print the result. Plenty of sites do exactly that, and plenty of visitors have learned to ignore the numbers because they are wrong so often.

The problem is that the providers I use do not always tell me the size. Some return a content length for every format. Some return it for the video streams but not for the audio. Some return nothing at all, and the only way to know the size is to ask the file itself — a HEAD request against the download URL — which is another network call, another chance to fail, and another few hundred milliseconds before the page can show anything.

So the rule I settled on is simple: a size label only appears when I actually know the size. When the provider gives me a content length, I format it — bytes into KB, MB or GB with one decimal, nothing cleverer than that — and show it next to the quality. When the provider gives me nothing, I try a HEAD request against the file URL and read the Content-Length header, but only within the same short timeout I already use for the resolve call, so a slow answer cannot hang the page. And when neither source gives me a number, the label says nothing about size at all. No estimate, no "approx", no number with a tilde in front of it. The option just reads "1080p" and the visitor decides on resolution alone, the way they did before.

That last part was the real decision. It is tempting to fill every gap with a guess so the dropdown looks complete and consistent. A row without a size looks unfinished next to rows that have one. But a guessed number is worse than a missing number, because a missing number is honest about what I do not know, and a guessed number pretends to know. The visitor cannot tell the difference until the download is already running, which is exactly when it is too late.

There was one more edge case worth handling. Some providers report a size for the video-only stream and a separate size for the audio track, when the format the visitor picks is a combined file. Adding those two numbers together would be a guess dressed up as arithmetic, because the combined file is not always the sum of its parts.

The result is a small, uneven-looking dropdown. Most options carry a size, a few do not. Nobody has ever complained about the missing ones. What changed is that the sizes that do appear are right, and on a phone with a slow connection that is the difference between picking 720p confidently and picking 1080p and regretting it halfway through.

It is a small piece of the site, and it took longer than it should have. But it is the same lesson most of the site keeps teaching me: the honest label is the feature. Everything else is decoration.