Urgent.News

What's breaking now, across thousands of outlets.

Tech

Your "49 KB" file is actually 50.5 KB. Blame the kilobyte.

A user picks a file. Their computer says 49 KB. Your form says "max 50 KB." The upload gets rejected anyway, and now there's a support ticket that says your site is broken. It isn't broken, exactly. You and the user just disagree about what a kilobyte is. And honestly? Both of you are right. Two kilobytes, one label There are two definitions in everyday use: KB (kilobyte), SI/decimal: 1,000 bytes…

A user uploads a file, but their computer may report the file size differently than the website's upload limit. This is due to two definitions of "kilobyte": SI/decimal (1,000 bytes) and IEC/binary (1,024 bytes). The confusion arises because websites often use the term "KB" without specifying which definition they mean. Windows Explorer uses 1,024 bytes and calls it "KB," while macOS has switched to the decimal definition.

The file size differences can lead to upload rejections and support tickets. Both decimal and binary definitions are technically correct, so the issue lies in inconsistent communication about file sizes.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

The Complete CBT Mental Health Toolkit: Free Tools for Developers

"The Complete CBT Mental Health Toolkit: Free Tools for Developers" published: false As a developer who struggled with anxiety, I built a comprehensive set of CBT (Cognitive Behavioral Therapy) tools.

  • Free, open-source CBT toolkit for developers
  • No registration, backend, or data collection
  • Interactive browser-based tools for mental health

Service Worker Keeps Stopping? That's the Contract, Not a Bug

The message in the console is not an error. Service worker registration successful followed by silence is the designed behavior of Manifest V3, and the sooner that stops feeling like a crash, the…

  • Service worker stops idling, not a failure
  • Chrome terminates idle background workers after 30 seconds
  • Logs cleared with each worker restart, store in storage

Day 87: A Redirected Module and a Renamed Publisher

Day 87 of DevOps, Day 37 of Azure. Both tasks today turned on a name that is not the name the system uses. An Ansible task that says yum runs the dnf module, because the first is now a redirect to the…

  • Ansible task installed and started vsftpd service on three CentOS Stream 9 servers
  • Published Percona MySQL image on Azure by Jetware, displayed as jetware-srl
  • Verified publisher name discrepancy before deploying marketplace images

More from Thursday 19 November →