we can send now?
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-07-20 01:32:57 +10:00
parent 25a99b4549
commit 2f630ddde0
3 changed files with 7631 additions and 20 deletions

16
app.py
View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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>