This commit is contained in:
2026-02-26 12:58:19 +01:00
commit 89f4f855c8
11 changed files with 730 additions and 0 deletions

40
templates/success.html Normal file
View File

@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Uploaded</title>
</head>
<body>
<h2>File uploaded</h2>
<p>
Download page:<br>
<input id="pageLink" readonly size="60">
</p>
<p>
Direct download:<br>
<input id="directLink" readonly size="60">
</p>
<p>
Delete link:<br>
<input id="deleteLink" readonly size="60">
</p>
<script>
const params = new URLSearchParams(location.search)
const id = params.get("id")
const page = `${location.origin}/d/${id}`
const direct = `${location.origin}/f/${id}`
document.getElementById("pageLink").value = page
document.getElementById("directLink").value = direct
// deletionID requires backend change to return it
</script>
</body>
</html>