diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-10-05 18:00:06 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-10-05 18:00:06 -0700 |
| commit | d89b325294201d95498ae9d08f102e12ac2f2876 (patch) | |
| tree | ffe65e33d0d01e811a5323d5e40c47564ccb8f2d /templates/wormhole-send.html.template | |
| parent | Allow downloading without gob (diff) | |
| download | roseh.moe-d89b325294201d95498ae9d08f102e12ac2f2876.tar.zst | |
Implement a "magic wormhole" file-sharing solution
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> |
