send files

This commit is contained in:
piair 2023-08-21 20:39:45 +02:00
parent f076eafec9
commit 8e9824b3d7
2 changed files with 6 additions and 1 deletions

View File

@ -420,6 +420,7 @@ def allowed_file(filename):
@app.route('/upload_file/', methods=['POST'])
@login_required
def upload_file():
print(request.files)
# check if the post request has the file part
if 'file' not in request.files:
print('No file part')

View File

@ -74,7 +74,11 @@
</table>
</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 %}
{%endblock %}