Add share link UI after upload

This commit is contained in:
2026-09-13 00:17:37 +02:00
parent da36645aaf
commit 505e4f472f
8 changed files with 211 additions and 47 deletions
+18 -5
View File
@@ -3,10 +3,23 @@
<h1>Uploaded</h1>
<p class="filename">{{.Meta.Filename}}</p>
<label class="field">
<span>Download link</span>
<input type="text" id="link" value="{{.URL}}" readonly>
</label>
<div class="links">
<div class="field">
<span>Share link <em>a page showing size, expiry and a download button</em></span>
<div class="copyrow">
<input type="text" id="link-info" value="{{.InfoURL}}" readonly>
<button type="button" class="copy" data-copy="link-info" hidden>Copy</button>
</div>
</div>
<div class="field">
<span>Direct download <em>the file itself, for curl, wget or a browser</em></span>
<div class="copyrow">
<input type="text" id="link-file" value="{{.URL}}" readonly>
<button type="button" class="copy" data-copy="link-file" hidden>Copy</button>
</div>
</div>
</div>
<dl>
<dt>Size</dt><dd>{{.Size}}</dd>
@@ -24,6 +37,6 @@
</form>
</div>
<p><a href="{{.Base}}">Upload another</a></p>
<p class="actions"><a class="button" href="{{.Base}}">Upload another file</a></p>
</section>
{{end}}