aboutsummaryrefslogtreecommitdiffstats
path: root/Web/Server/templates/upload.html
diff options
context:
space:
mode:
authorDat Nguyen <nguy2854@umn.edu>2019-11-20 21:10:51 -0600
committerDat Nguyen <nguy2854@umn.edu>2019-11-20 21:10:51 -0600
commit8887dc5a9803969e23b24eb293711c1e32c374e5 (patch)
treebd287ae89568ef18f4fa05e604f94dc28148bcb1 /Web/Server/templates/upload.html
parentRemove leftover files from a past merge. (diff)
downloadee4511w-8887dc5a9803969e23b24eb293711c1e32c374e5.tar
ee4511w-8887dc5a9803969e23b24eb293711c1e32c374e5.tar.gz
ee4511w-8887dc5a9803969e23b24eb293711c1e32c374e5.tar.bz2
ee4511w-8887dc5a9803969e23b24eb293711c1e32c374e5.tar.lz
ee4511w-8887dc5a9803969e23b24eb293711c1e32c374e5.tar.xz
ee4511w-8887dc5a9803969e23b24eb293711c1e32c374e5.tar.zst
ee4511w-8887dc5a9803969e23b24eb293711c1e32c374e5.zip
Web stuff semi working
Diffstat (limited to 'Web/Server/templates/upload.html')
-rw-r--r--Web/Server/templates/upload.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/Web/Server/templates/upload.html b/Web/Server/templates/upload.html
new file mode 100644
index 0000000..38c4a09
--- /dev/null
+++ b/Web/Server/templates/upload.html
@@ -0,0 +1,37 @@
+<html>
+ <head>
+ <link rel="stylesheet" href="/static/Server.css">
+ <script type="text/javascript" src="/static/Server.js"></script>
+ </head>
+ <body>
+ <title>Python Flask File Upload Example</title>
+ <h2>Select a file to upload</h2>
+ <p id = "message">
+ {% 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="/upload" enctype="multipart/form-data">
+ <dl>
+ <p>
+ <input type="file" name="file" autocomplete="off" required>
+ </p>
+ </dl>
+ <p>
+ <input type="submit" value="Submit" onclick="showLoad()">
+ </p>
+ </form>
+
+ {% if results %}
+ <form method="get" action="/results">
+ <button type="submit">Download!</button>
+ </form>
+ {% endif %}
+ </body>
+</html> \ No newline at end of file