rendered paste body<html>
<head>
<title>Prueba</title>
</head>
<body>
<form method="post" action="upload.php" enctype="multipart/form-data">
<table border="0" cellpadding="5">
<tr>
<td>
<input type="hidden" name = "MAX_FILE_SIZE" value = "1000">
</td>
</tr>
<td>
<input name="imagen" type="file">
</td>
</tr>
</table>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Limpiar">
</p>
</form>
</body>
</html>
this is upload.php
<?php
if (is_uploaded_file($_FILES['imagen']['tmp_name'])) {
copy($_FILES['imagen']['tmp_name'], "/var/www/pics/");
} else {
echo "Fallo. Filename: " . $_FILES['imagen']['name'];
}
?>