<form action="" method="POST" enctype="multipart/form-data">
    <input type="file" name="logo" accept="image/*">
    <button style="margin-bottom: 20px;" type="submit" class="btn btn-default">Dosya Yükle</button>
</form>
<div class="panel panel-default">
	<div class="panel-body" style="padding:0;">
		<table class="table" style="margin-bottom:0;">
			<thead>
				<tr>
					<th>Önizleme</th>
					<th>Bağlantı</th>
					<th></th>
				</tr>
			</thead>
			<tbody>  
                <?php foreach($dosyalar as $row): 
                    if($row =='.' || $row == '..' || $row == 'istenmeyendosya.txt') continue; ?>
                <tr>
                    <td><img src="<?=site('mp-public/uploads/'.$row)?>" height="40"></td>
                    <td><a href="<?=site('mp-public/uploads/'.$row)?>" target="_blank">Dosya Bağlantısı</a></td>
                    <td><a class="btn btn-sm btn-default" href="<?=admin_url('appearence/files/delete/'.substr($row, 0, -4))?>">Sil</a></td>
                </tr>
                <?php endforeach; ?>
			</tbody>
		</table>
	</div>
</div>