newFile($_FILES['userfile']['tmp_name'], $name); } } if($task == "delete" && $fid) { $files->deleteFile($fid); } $files->show(); ?>

File:

Use alternative filename (leave empty to use original filename):