diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-10-04 16:38:40 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-10-04 16:38:40 -0700 |
| commit | 014b84ec226b8a98d1aa5cfa54a847e6eae6030f (patch) | |
| tree | 5f33616f78fd1a7a42752760071e6916eb8e84a7 /templates | |
| parent | 8f3927cc91b8f9dcc2bd3e05c2ddd225a92c96dc (diff) | |
| download | roseh.moe-014b84ec226b8a98d1aa5cfa54a847e6eae6030f.tar.zst | |
Allow http multipart upload
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/login.html.template | 1 | ||||
| -rw-r--r-- | templates/upload.html.template | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/templates/login.html.template b/templates/login.html.template index 0cf3469..8d1ec9b 100644 --- a/templates/login.html.template +++ b/templates/login.html.template @@ -5,6 +5,7 @@ <p class="login-error">Incorrect password</p> {{end}} <form class="password-form" action="/login" method="post"> + <input type="hidden" name="redirect" value="{{.Redirect}}"> <label class="password-label" for="password">Enter password</label> <input id="password" class="password" type="password" name="password" autofocus> </form> diff --git a/templates/upload.html.template b/templates/upload.html.template new file mode 100644 index 0000000..f920f23 --- /dev/null +++ b/templates/upload.html.template @@ -0,0 +1,7 @@ +{{define "head"}}<title>Upload</title>{{end}} + +<form method="POST" enctype="multipart/form-data"> + <input type="hidden" name="csrf-token" value="{{.CSRFToken}}"> + <input type="file" name="content"> + <input type="submit" value="Upload"> +</form> |
