multipart upload

This commit is contained in:
carodej
2020-07-28 16:57:54 +02:00
parent fe8e329fea
commit 9fea65bd52
6 changed files with 106 additions and 47 deletions

View File

@@ -343,6 +343,17 @@ function format_gigabytes($gigabytes)
}
}
/**
* Convert megabytes to bytes
*
* @param $megabytes
* @return int|string
*/
function format_bytes($megabytes)
{
return Metric::megabytes($megabytes)->numberOfBytes();
}
/**
* Get storage usage in percent
*