My web application allows users to upload files. I am able to find the size of these files in bytes. However I need to convert this number to gigabytes with javascript on the back-end. Does anyone know the formula and how to execute this task with javascript ?
For example: right now my file size is 626581571 bytes.
626.58 MB
, or597.55 MiB
. :) – Sibley