readmeeee
This commit is contained in:
+5
-2
@@ -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>.
|
||||
|
||||
Reference in New Issue
Block a user