Código PHP:
<?php
ini_set('post_max_size','100M');
ini_set('upload_max_filesize','100M');
ini_set('max_execution_time','1000');
ini_set('max_input_time','1000');
if ($_POST["action"] == "upload") {
$tamano = $_FILES['archivo']['size'];
$tipo = $_FILES['archivo']['type'];
$archivo = $_FILES['archivo']['name'];
$destino= "/home/http/EXTRANET/projects/RAMAN/FILES/".$_FILES['archivo']['name'];
if ($archivo != "")
{
if (move_uploaded_file($_FILES['archivo']['tmp_name'],$destino))
{
echo "The file has been updated successfully: <b>".$archivo."</b>";
chmod($destino,0640);
} else
{
echo "An error has ocurred during the file upload. Try again! (Tipo de error: ".$_FILES['archivo']['error'].")<br>";
}
} else
{
echo "Please, select a file to upload!</b>";
}
}
;
?>
proba con esto a ver como va