HTMLify
file-upload.html
Views: 462 | Author: abh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | <!DOCTYPE html> <html> <head> <title>Media Upload</title> {% include "stylesheet.html" %} <style> </style> </head> <body> <h1>HTMLify</h1> {% include "search-bar.html" %} {% include "nav-bar.html" %} <form class="upload-form" action="/action/upload" method="POST" enctype="multipart/form-data"> {% if request.args.get("msg") %} <div class="error-msg"> {% for line in request.args.get("msg").split("<br>") %} {{ line }}<br> {% endfor %} </div> {% endif %} <label for="fileInput">Choose a file to upload:</label> <input type="file" id="fileInput" name="files" multiple required> <label for="dir">Upload in directory:</label> <input type="text" id="dir" name="dir" value="{% if request.args.get("dir") %}{{ request.args.get("dir") }}{% endif %}"> <input type="submit" value="Upload"> </form> </body> </html> |