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:43:33 +10:00
parent d646b120d5
commit 7a08ae00cd
2 changed files with 11 additions and 11 deletions

View File

@ -21,6 +21,16 @@
<i class="material-icons right">send</i> <i class="material-icons right">send</i>
</button> </button>
</a> </a>
</div>
<div class="row">
<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>
<!-- <h1>Загрузить картинку:</h1> <!-- <h1>Загрузить картинку:</h1>
<input type="file" #file placeholder="Загрузить картинку" (change)="sendPic($event)" style="display:none;"> <input type="file" #file placeholder="Загрузить картинку" (change)="sendPic($event)" style="display:none;">

View File

@ -15,17 +15,7 @@
<div class="row"> <div class="row">
<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">
<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> </div>
{% endblock content %} {% endblock content %}