direct upload from listing page
This commit is contained in:
@@ -3,6 +3,11 @@
|
|||||||
<h1>{{ name }}</h1>
|
<h1>{{ name }}</h1>
|
||||||
{% if upload %}
|
{% if upload %}
|
||||||
<a href="{{ url_for('send', name=name) }}">+ upload</a>
|
<a href="{{ url_for('send', name=name) }}">+ upload</a>
|
||||||
|
<form action={{ url_for('upload') }} method=post enctype=multipart/form-data>
|
||||||
|
<input type=hidden name=name value="{{ name|safe }}" />
|
||||||
|
<p><input type=file name=file>
|
||||||
|
<input type=submit value=Upload>
|
||||||
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
Grayed out + upload
|
Grayed out + upload
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user