i dont see a problem in the code.
To help troubleshoot, add the following code at line 1:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
if($_SERVER["REQUEST_METHOD"] == "POST"){
var_dump($_FILES);
}
?>
and report the results after trying to upload a new file