html multipart form code example
Example 1: multipart form
<form action="upload.php" method="post" enctype="multipart/form-data">
Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit">
</form>
Example 2: enctype= multipart/form-data
enctype="multipart/form-data"