<!-- Optional theme -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
    </head>

    <h2>Uploaded Files</h2>
    <a href="index.php">Upload Files</a>
    <br />
    <br />
    <?php 
$util = new Util();
$errors = array();
if ($util->isPostRequest()) {
    $filename = filter_input(INPUT_POST, 'filename');
    try {
        $deleteFile = new Delete_file();
        $deleteFile->deleteFile($filename);
        $message = 'File deleted successfully';
    } catch (Exception $ex) {
        $errors[] = $ex->getMessage();
    }
}
$directory = scandir('./uploads');
//var_dump($directory);
?>
    <table class="table"><thead><td>Filename</td>
        <td>File Type</td><td>File Size</td><td>Delete</td></thead>
    <?php 
foreach ($directory as $file) {
    ?>
        <?php 
    $type = pathinfo($file)['extension'];