diff --git a/static/js/copy.js b/static/js/copy.js index b08f444..1293964 100644 --- a/static/js/copy.js +++ b/static/js/copy.js @@ -6,7 +6,7 @@ if (link && navigator.clipboard?.writeText) { link.onclick = async (e) => { e.preventDefault(); try { - await navigator.clipboard.writeText(`${location.origin}/${link.dataset.id}`); + await navigator.clipboard.writeText(`${location.origin}/${link.dataset.id}${link.dataset.extension}`); link.textContent = "copied"; setTimeout(() => { link.textContent = "copy link"; diff --git a/templates/upload.html b/templates/upload.html index 0634b12..40460e4 100644 --- a/templates/upload.html +++ b/templates/upload.html @@ -12,11 +12,11 @@
{{if hasPrefix .MIMEType "image/"}} - + {{else if hasPrefix .MIMEType "video/"}} - + {{else if hasPrefix .MIMEType "audio/"}} - + {{else}}

{{.Filename}}

{{.ID}}{{.FileExtension}}

@@ -87,7 +87,7 @@ copying is only available with javascript we will make this element visible with javascript --> - +