This commit is contained in:
parent
25a99b4549
commit
2f630ddde0
16
app.py
16
app.py
@ -194,21 +194,9 @@ def upload_file():
|
|||||||
bucket_name, uploaded_file.filename, uploaded_file, size
|
bucket_name, uploaded_file.filename, uploaded_file, size
|
||||||
)
|
)
|
||||||
|
|
||||||
return """
|
return "OK"
|
||||||
<h1>stored</h1>
|
|
||||||
<form method=post enctype=multipart/form-data>
|
|
||||||
<input type=file name=file>
|
|
||||||
<input type=submit value=Upload>
|
|
||||||
</form>
|
|
||||||
"""
|
|
||||||
|
|
||||||
return """
|
return " NE OK "
|
||||||
<h1>Upload IPS File</h1>
|
|
||||||
<form method=post enctype=multipart/form-data>
|
|
||||||
<input type=file name=file>
|
|
||||||
<input type=submit value=Upload>
|
|
||||||
</form>
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
7620
static/src/_hyperscript.js
Normal file
7620
static/src/_hyperscript.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -16,11 +16,14 @@
|
|||||||
<div class="col s7 m6" id="answer-post">
|
<div class="col s7 m6" id="answer-post">
|
||||||
{% include 'answer-post.html' %}
|
{% include 'answer-post.html' %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col s7 m6" id="minio"-post">
|
<div class="col s7 m6" id="minio-post">
|
||||||
<h1>Upload IPS File</h1>
|
<form hx-encoding='multipart/form-data' hx-post='/send_dudes'
|
||||||
<form method=post enctype=multipart/form-data>
|
_='on htmx:xhr:progress(loaded, total) set #progress.value to (loaded/total)*100'>
|
||||||
<input type=file name=file>
|
<input type='file' name='file'>
|
||||||
<input type=submit value=Upload>
|
<button>
|
||||||
|
Upload
|
||||||
|
</button>
|
||||||
|
<progress id='progress' value='0' max='100'></progress>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user