diff --git a/index.php b/index.php index 51c6eed..cb4524a 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,32 @@ = 0) && ($bytes < $kb)) { +return $bytes . ' B'; + +} elseif (($bytes >= $kb) && ($bytes < $mb)) { +return ceil($bytes / $kb) . ' KB'; + +} elseif (($bytes >= $mb) && ($bytes < $gb)) { +return ceil($bytes / $mb) . ' MB'; + +} elseif (($bytes >= $gb) && ($bytes < $tb)) { +return ceil($bytes / $gb) . ' GB'; + +} elseif ($bytes >= $tb) { +return ceil($bytes / $tb) . ' TB'; +} else { +return $bytes . ' B'; +} +} + +$maxsize = max_size; $core = new Core(); ?> @@ -51,7 +78,7 @@ if(isset($_POST['submit'])){ ?>
-

Drag your files here or click in this area.

+

Drag your files here or click in this area - Max