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}} +they are being normalized for security.
+ {{end}} +
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)
+
cat super-cool-text.txt | curl -T - {{.Host}}/upload
curl -F "file=@very-cool-image.png" {{.Host}}/upload
- {{if .NormalizeMIMETypes}}
- they are being normalized for security.
- {{end}} +
+ 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.
+