rendered paste body<html>
<head>
</head>
<body>
<form enctype="multipart/form-data" action="" method="post">
Fichier : <input name="fichier" type="file"><br>
<input type="submit" value="Envoyer">
</form>
</body>
</html>
<?
$MAX_FILE_SIZE = 2000000;
$folder = "./";
$allowed_types = array("image/bmp", "image/gif", "image/pjpeg", "image/jpeg", "image/jpg", "multipart/x-zip", "video/msvideo");
$fname = $HTTP_POST_FILES['fichier']['name'];
$ftype = $HTTP_POST_FILES['fichier']['type'];
$fsize = $HTTP_POST_FILES['fichier']['size'];
$ftmp = $HTTP_POST_FILES['fichier']['tmp_name'];
if(copy($ftmp,''.$folder.''.$fname.'')) echo("Fichier correctement envoy.");
else echo("Erreur.");
?>