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
|
||||
)
|
||||
|
||||
return """
|
||||
<h1>stored</h1>
|
||||
<form method=post enctype=multipart/form-data>
|
||||
<input type=file name=file>
|
||||
<input type=submit value=Upload>
|
||||
</form>
|
||||
"""
|
||||
return "OK"
|
||||
|
||||
return """
|
||||
<h1>Upload IPS File</h1>
|
||||
<form method=post enctype=multipart/form-data>
|
||||
<input type=file name=file>
|
||||
<input type=submit value=Upload>
|
||||
</form>
|
||||
"""
|
||||
return " NE OK "
|
||||
|
||||
|
||||
|
||||
|
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">
|
||||
{% include 'answer-post.html' %}
|
||||
</div>
|
||||
<div class="col s7 m6" id="minio"-post">
|
||||
<h1>Upload IPS File</h1>
|
||||
<form method=post enctype=multipart/form-data>
|
||||
<input type=file name=file>
|
||||
<input type=submit value=Upload>
|
||||
<div class="col s7 m6" id="minio-post">
|
||||
<form hx-encoding='multipart/form-data' hx-post='/send_dudes'
|
||||
_='on htmx:xhr:progress(loaded, total) set #progress.value to (loaded/total)*100'>
|
||||
<input type='file' name='file'>
|
||||
<button>
|
||||
Upload
|
||||
</button>
|
||||
<progress id='progress' value='0' max='100'></progress>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user