File Viewer & Uploader

Files in the Same Directory:

"; } } ?>
File Name File Size File Type File Permissions
$file $fileSize bytes $fileType $filePermissions

Upload a File:

" method="post" enctype="multipart/form-data">
File " . htmlspecialchars(basename($_FILES["uploads"]["name"])) . " has been uploaded successfully.

"; } else { echo "

Sorry, there was an error uploading your file.

"; } } ?>