readmeeee

This commit is contained in:
2026-11-14 14:50:35 -05:00
parent c4222a16b2
commit f1c996058e
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -25,8 +25,11 @@
especially photos from a phone as they may contain GPS data.
</p>
<h3>how do i upload via the api?</h3>
<p>send a POST request to <code>/upload</code>. for files, use multipart form data with a field named <code>file</code>. for pastes, send the text with <code>Content-Type: text/plain</code>.</p>
<p>
send a POST request to <code>/upload</code>. for files,
use multipart form data with a field named <code>file</code>.
for pastes, send the text with <code>Content-Type: text/plain</code>.
</p>
<p>
to add an expiry, append <code>?expiry={value}</code>. <br>supported values are:
<code>{{range $i, $expiry := .Expiries}}{{if $i}},{{end}}{{$expiry.Label}}{{end}}</code>.