send files
This commit is contained in:
parent
f076eafec9
commit
8e9824b3d7
|
@ -420,6 +420,7 @@ def allowed_file(filename):
|
||||||
@app.route('/upload_file/', methods=['POST'])
|
@app.route('/upload_file/', methods=['POST'])
|
||||||
@login_required
|
@login_required
|
||||||
def upload_file():
|
def upload_file():
|
||||||
|
print(request.files)
|
||||||
# check if the post request has the file part
|
# check if the post request has the file part
|
||||||
if 'file' not in request.files:
|
if 'file' not in request.files:
|
||||||
print('No file part')
|
print('No file part')
|
||||||
|
|
|
@ -74,7 +74,11 @@
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
<form method="post" action="/upload_file/">
|
||||||
|
<input type="file" id="file1">
|
||||||
|
<input type="file" id="file2">
|
||||||
|
<input type="submit" name="settings" id="submit" value="send file" class="button"/>
|
||||||
|
</form>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%endblock %}
|
{%endblock %}
|
||||||
|
|
Loading…
Reference in New Issue