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