From ee454661cca8677f4d029cc791aacf5781f22e21 Mon Sep 17 00:00:00 2001
From: whoswhip
Date: Sat, 14 Nov 2026 17:10:54 -0500
Subject: [PATCH] api section in faq; brighter code background
---
static/css/main.css | 3 ++-
templates/faq.html | 19 +++++++++++++++----
2 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/static/css/main.css b/static/css/main.css
index f290b5b..29e2ed5 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -1,6 +1,7 @@
:root {
--bg: #191919;
--surface: #2a2a2a;
+ --surface-between: #3a3a3a;
--surface-hover: #4a4a4a;
--text: #eee;
--text-muted: #aaa;
@@ -242,6 +243,6 @@ body.dragging::after {
}
code {
- background-color: var(--surface);
+ background-color: var(--surface-between);
padding-inline: 4px;
}
\ No newline at end of file
diff --git a/templates/faq.html b/templates/faq.html
index 4313c2f..a59aa13 100644
--- a/templates/faq.html
+++ b/templates/faq.html
@@ -24,6 +24,11 @@
be wary of any metadata included in the files you are uploading,
especially photos from a phone as they may contain GPS data.
+ {{if .NormalizeMIMETypes}}
+ why are my html/svg/pdf uploads not being rendered?
+ they are being normalized for security.
+ {{end}}
+ api usage
how do i upload via the api?
send a POST request to /upload. for files, use multipart
@@ -38,14 +43,20 @@
$i}},{{end}}{{$expiry.Label}}{{end}}. omitting an expiry will use the first expiry listed.
+
+ you can also specify if you would prefer a long or short upload id, just
+ append
?idlength=short to get a shorter id (10 characters),
+ otherwise it defaults to long (16 character)
+
uploading the output of a command
cat super-cool-text.txt | curl -T - {{.Host}}/upload
upload a file via curl
curl -F "file=@very-cool-image.png" {{.Host}}/upload
- {{if .NormalizeMIMETypes}}
- why are my html/svg/pdf uploads not being rendered?
- they are being normalized for security.
- {{end}}
+ getting upload info
+
+ you can retrieve an upload's metadata by simply appending /info to the end of an upload, like /{id}/info.
+ it returns all stored metadata except for the original filename.
+