docs(readme): update README.md about expiring links

This commit is contained in:
orhun 2021-08-27 21:12:18 +03:00
parent 13126e79ce
commit 38a0144ad7
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -19,7 +19,8 @@ some text
- random file names (optional)
- pet name (e.g. `capital-mosquito.txt`)
- alphanumeric string (e.g. `yB84D2Dv.txt`)
- one shot links (file _disappears_ after accessed)
- supports expiring links
- supports one shot links (can only be viewed once)
- guesses MIME types
- supports overriding and blacklisting
- Single binary
@ -53,6 +54,14 @@ $ rpaste x.txt
$ rpaste -
```
#### Expiration
```sh
curl -F "file=@x.txt" -H "expire:10min" "<server_address>"
```
(supported units: `ns`, `us`, `ms`, `sec`, `min`, `hours`, `days`, `weeks`, `months`, `years`)
#### One Shot
```sh
@ -140,7 +149,6 @@ http {
### Roadmap
- Support setting an expiry date for uploads
- Write a CLI tool in Rust
### Contributing