This commit is contained in:
piair 2023-08-21 20:42:16 +02:00
parent 8e9824b3d7
commit 280d4c79c3
2 changed files with 2 additions and 2 deletions

View File

@ -417,7 +417,7 @@ def allowed_file(filename):
return '.' in filename and \ return '.' in filename and \
filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
@app.route('/upload_file/', methods=['POST']) @app.route('/upload_file/', methods=['POST', "GET"])
@login_required @login_required
def upload_file(): def upload_file():
print(request.files) print(request.files)

View File

@ -74,7 +74,7 @@
</table> </table>
</form> </form>
<form method="post" action="/upload_file/"> <form method="POST" action="/upload_file/">
<input type="file" id="file1"> <input type="file" id="file1">
<input type="file" id="file2"> <input type="file" id="file2">
<input type="submit" name="settings" id="submit" value="send file" class="button"/> <input type="submit" name="settings" id="submit" value="send file" class="button"/>