Primer upload
This commit is contained in:
12
files/templates/files/index.html
Normal file
12
files/templates/files/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="file-listing">
|
||||
{% for filename in filenames %}
|
||||
<a href="{{ url_for('files.uploaded_file', filename=filename) }}">{{ filename }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
11
files/templates/files/upload.html
Normal file
11
files/templates/files/upload.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}upload{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="file" class="u-full-width" name="file">
|
||||
<input type="submit" class="button-primary" value="upload">
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user