Add simple HTML template with file upload

Code taken from the following blog posts:
  - https://pythonbasics.org/flask-upload-file
  - https://blog.miguelgrinberg.com/post/handling-file-uploads-with-flask
This commit is contained in:
2021-03-11 15:55:58 +02:00
parent 482cd25182
commit 81b5206e97
2 changed files with 41 additions and 2 deletions

13
templates/index.html Normal file
View File

@ -0,0 +1,13 @@
<!doctype html>
<html>
<head>
<title>CSV Metadata Quality Web</title>
</head>
<body>
<h1>File Upload</h1>
<form method="POST" action="" enctype="multipart/form-data">
<p><input type="file" name="file" accept=".csv"></p>
<p><input type="submit" value="Submit"></p>
</form>
</body>
</html>