mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-13 08:09:37 +00:00
tests
This commit is contained in:
parent
87daac669f
commit
1621fd0651
3
main.py
3
main.py
@ -618,6 +618,9 @@ def new():
|
||||
@app.route("/upload_file", methods=['POST'])
|
||||
def upload_file():
|
||||
log_server("called /upload_file")
|
||||
file = request.files
|
||||
print(f"{file=}")
|
||||
return render_template(f'404.html')
|
||||
|
||||
@app.errorhandler(404)
|
||||
def page_not_found(e):
|
||||
|
||||
@ -296,7 +296,9 @@
|
||||
<div hidden class="tmpplt_tab" id="_files">
|
||||
<form class="modal-content animate" action="/upload_file" method="POST">
|
||||
<div class="container" style="margin-top: 2em">
|
||||
<button type="submit">Hochladen</button>
|
||||
<label for="form_file">
|
||||
<input id="form_file" type="file">
|
||||
<button type="submit">upload</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user