in lib/proxy.php we have a postFileSize proxy which should already take care that you get the unencrypted size. No need to calculate it here.