feat: add possibility to hide upload button (#25)
All checks were successful
/ pre-commit (push) Successful in 1m4s

I was asked to add the possibility to hide the upload button to avoid users confuse this tool for a file sharing app.
This is only on the front.

No breaking changes, by default the button is displayed.

Co-authored-by: Thibault Piron <thibault.a.piron@gmail.com>
Reviewed-on: #25
Reviewed-by: Julien Riou <jriou@monitoring@riou.xyz>
Co-authored-by: tapiron <tapiron@monitoring@riou.xyz>
Co-committed-by: tapiron <tapiron@monitoring@riou.xyz>
This commit is contained in:
tapiron 2025-09-15 09:20:50 +02:00 committed by Julien Riou
commit e03aa6b87a
4 changed files with 34 additions and 27 deletions

View file

@ -31,9 +31,11 @@
value="delete-after-read" name="delete-after-read">
<label class="col-form-label col-form-label-sm" for="delete-after-read">Delete after read</label>
</div>
{{if .EnableUploadFileButton}}
<div class="col">
<input type="file" class="form-control" for="file" id="file" name="file" accept="text/plain" />
</div>
{{end}}
<div class="col">
<select class="form-select" aria-label="Expiration" id="expiration" name="expiration">
<option disabled>Expiration</option>