newFile($_FILES['userfile']['tmp_name'], $name); else echo "File is too big " . sprintf("%.0f", filesize($_FILES['userfile']['tmp_name'])/1024). "kb, max file size: " . sprintf("%.0f", $FILE_MAX_SIZE/1024) . "kb."; } } if($task == "delete" && $fid) { $files->deleteFile($fid); } $files->show(); ?>