Last active
September 25, 2021 13:12
-
-
Save ngbala6/d0a41fd49c5bd95f2601bc82aecefc0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <title>Python Flask Multiple Files Upload Example</title> | |
| <h2>Select file to upload</h2> | |
| <p> | |
| {% with messages = get_flashed_messages() %} | |
| {% if messages %} | |
| <ul class=flashes> | |
| {% for message in messages %} | |
| <li>{{ message }}</li> | |
| {% endfor %} | |
| </ul> | |
| {% endif %} | |
| {% endwith %} | |
| </p> | |
| <form method="post" action="/" enctype="multipart/form-data"> | |
| <dl> | |
| <p> | |
| <input type="file" name="file" autocomplete="off" required> | |
| </p> | |
| </dl> | |
| <p> | |
| <input type="submit" value="Submit"> | |
| </p> | |
| </form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment