= 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(); ?> <?= app_name; ?> - <?= app_desc; ?>
FileTypeVerification($_FILES["fileToUpload"])){ if($core->FileSizeVerification($_FILES["fileToUpload"])){ $newfilename = $core->FileNameConvertor($_FILES["fileToUpload"]); if($core->UploadFile($_FILES["fileToUpload"], $newfilename)){ ?>
Success ! Your file is available here:
An error occured while trying to upload your file
Your File Is Too Big
Incorrect File Format

Drag a file here or click to upload


'; } ?>