<form action="" method="POST" enctype="multipart-form-data">
<input type="file" name="uploadfile">
<input type="submit" class="btn btn-primary" name="upload" value="Отправить">
</form>
if(isset($_POST['upload'])) {
echo '<pre>';
print_r($_FILES);
echo '</pre>';
}