";
if ($_POST['Ir'] != ""){
echo "
";
echo $_FILES['file_a']['tmp_name'];
echo "
";
echo $_FILES['file_a']['name'];
echo "
";
echo $_FILES['file_a']['type'];
echo "
";
echo "Tamano do aquivo:".$_FILES['file_a']['size'];
echo "
";
///////////
$rr = "img/";
/////////////////////
if (file_exists($rr.$_FILES['file_a']['name'])){
print "Arquivo ".$_FILES['file_a']['name']." já existe";
} else {
$arquivo_e = $_FILES['file_a']['tmp_name'];
$arquivo_d = $rr.$_FILES['file_a']['name'];
move_uploaded_file($arquivo_e,$arquivo_d);
}
}
?>