diff options
Diffstat (limited to 'templates/wormhole-send.html.template')
| -rw-r--r-- | templates/wormhole-send.html.template | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/wormhole-send.html.template b/templates/wormhole-send.html.template new file mode 100644 index 0000000..5b06c5f --- /dev/null +++ b/templates/wormhole-send.html.template @@ -0,0 +1,14 @@ +{{define "head"}} + <script src="/static/htmx.min.js"></script> + <script src="/static/htmx-ext-sse.js"></script> + <title>Wormhole</title> +{{end}} + +<form + hx-ext="sse" + sse-connect="/wormhole/{{.Hole}}/ready" + hx-post="/wormhole/{{.Hole}}" + hx-trigger="sse:receiver-ready" + enctype="multipart/form-data"> + <input type="file" name="file"> +</form> |
