Implement download functionality

- directories are served as a zip-file
This commit is contained in:
Fabian Würfl
2018-05-20 22:41:35 +02:00
parent 74ae51f65c
commit b0137b2db6
3 changed files with 65 additions and 3 deletions

View File

@ -29,11 +29,11 @@
{% for file in files %}
<li class="file">
<form method="post" class="file file_add">
<input type="text" value="{{ subdirpath }}/{{ file }}" name="add_file" hidden>
<input type="text" value="{{ subdirpath }}{{ file }}" name="add_file" hidden>
<input type="submit" value="Add">
</form>
<form action="./download" method="get" class="file file_download">
<input type="text" value="{{ subdirpath }}/{{ file }}" name="file" hidden>
<input type="text" value="{{ subdirpath }}{{ file }}" name="file" hidden>
<input type="submit" value="Download">
&nbsp;{{ file }}
</form>