upload a file
Posted: Wed Mar 26, 2003 1:15 pm
I would like to give the opportunity to my websites users to upload files on the server. Is this the good syntax??
<html>
<head>
<title>Chargement de fichier</title>
</head>
<body>
<H3>Cette page vous permet d'envoyer un fichier sur le serveur</H3>
<form action="upload.php" enctype="multipart"/form-data" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1024"/>
Charger le fichier: <input name="fichier" type="file" /><br />
<input type="submit" value="GO >>">
</form>
</body>
</html>
do I have to use move_uploaded_file after?? I think this syntax change the name of the file. Is it true??? If yes how to keep the real name of the file?????
<html>
<head>
<title>Chargement de fichier</title>
</head>
<body>
<H3>Cette page vous permet d'envoyer un fichier sur le serveur</H3>
<form action="upload.php" enctype="multipart"/form-data" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1024"/>
Charger le fichier: <input name="fichier" type="file" /><br />
<input type="submit" value="GO >>">
</form>
</body>
</html>
do I have to use move_uploaded_file after?? I think this syntax change the name of the file. Is it true??? If yes how to keep the real name of the file?????