Comment uploader un fichier en PHP

Tutoriel PHP - Comment uploader un fichier en PHP

À propos de ce tutoriel

Dans cette vidéo je vous montre comment envoyer un fichier vers un serveur web avec PHP.

Création du formulaire

<!DOCTYPE html>
<html lang="fr">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Comment uploader un fichier en PHP</title>
</head>

<body>
    <form action="PSOT" enctype="multipart/form-data">
        <input type="file" name="upload_file"><br>
        <input type="submit" value="Envoyer">
    </form>
</body>

</html>