HTMLify

file-upload.html
Views: 121 | Author: abh
<!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>

Comments