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

File diff suppressed because it is too large Load Diff

View File

@ -16,12 +16,15 @@
<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>
</form> Upload
</button>
<progress id='progress' value='0' max='100'></progress>
</form>
</div> </div>
</div> </div>