Prusa Connect does not reflect correct file size
This is weird. I generated a bgcode file and the size is showing as 7.7MB in my file explorer. However, when I upload it to Prusa Connect it shows the file size as 8.1MB. I think clearly is is dividing the file size by 1,000 instead of 1,024. Now, I get that they created the different MB vs MiB but most operating systems still show MB but mean MiB so I would either follow suit, or change your display to say MiB and divide by 1,024. Otherwise you're just going to confuse people.
RE: Prusa Connect does not reflect correct file size
It could also be down to block size or how they interpret it; some OSs show file size as total blocks taken up, some show the actual size of the blocks ignoring the wasted space of partially filled blocks.
RE: Prusa Connect does not reflect correct file size
The numbers align with a difference between 1,000 and 1,024. That would not happen if it was giving a number related to excess space used.
It could also be down to block size or how they interpret it; some OSs show file size as total blocks taken up, some show the actual size of the blocks ignoring the wasted space of partially filled blocks.