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
+1 -1
View File
@@ -37,7 +37,7 @@ goals:
## misc goals ## misc goals
- [x] link to this git repo on home page - [x] link to this git repo on home page
- [ ] maybe keep nojs and js on the same page? - [x] maybe keep nojs and js on the same page?
- just use javascript to enhance the experience, like progress, drag and drop - just use javascript to enhance the experience, like progress, drag and drop
- [ ] shareX config download handlers (automatically create based off of config) - [ ] shareX config download handlers (automatically create based off of config)
- [ ] add a config option to put the endpoint on another path, such as `/f/{id}` - [ ] add a config option to put the endpoint on another path, such as `/f/{id}`
+5 -2
View File
@@ -25,8 +25,11 @@
especially photos from a phone as they may contain GPS data. especially photos from a phone as they may contain GPS data.
</p> </p>
<h3>how do i upload via the api?</h3> <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> <p>
to add an expiry, append <code>?expiry={value}</code>. <br>supported values are: 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>. <code>{{range $i, $expiry := .Expiries}}{{if $i}},{{end}}{{$expiry.Label}}{{end}}</code>.