Skip to content

Instantly share code, notes, and snippets.

@Internet-viewer
Forked from ngbala6/upload.html
Created September 25, 2021 13:12
Show Gist options
  • Select an option

  • Save Internet-viewer/e51d7fde4002c497386f1d3445ab74c1 to your computer and use it in GitHub Desktop.

Select an option

Save Internet-viewer/e51d7fde4002c497386f1d3445ab74c1 to your computer and use it in GitHub Desktop.
<!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