added inforation to item_explanation.md
This commit is contained in:
parent
596899a31a
commit
574e906439
1 changed files with 7 additions and 1 deletions
|
@ -4,6 +4,8 @@ All following requests can only read the uploaded data.
|
||||||
|
|
||||||
To use the build-in link-shortener functionality you have to POST the URL with Content-Type: text/x-uri or Content-Type: text/uri-list.
|
To use the build-in link-shortener functionality you have to POST the URL with Content-Type: text/x-uri or Content-Type: text/uri-list.
|
||||||
|
|
||||||
|
To change the default expiration date, you can use the `?ttl=` parameter. It supports durations like `60s`, `60m`, `24h`, `30d`, `12M`, `1y` or iso dates like `1970-01-01T00:00:00` in UTC timezone.
|
||||||
|
|
||||||
## Upload a link
|
## Upload a link
|
||||||
`$ curl -H "Content-Type: text/x-uri" --data "https://example.com" <bin_url>`
|
`$ curl -H "Content-Type: text/x-uri" --data "https://example.com" <bin_url>`
|
||||||
|
|
||||||
|
@ -14,7 +16,11 @@ To use the build-in link-shortener functionality you have to POST the URL with C
|
||||||
`$ curl -X POST -H "Content-Type: application/gzip" -T my-file.tar.gz <bin_url>`
|
`$ curl -X POST -H "Content-Type: application/gzip" -T my-file.tar.gz <bin_url>`
|
||||||
|
|
||||||
## Pipe into curl
|
## Pipe into curl
|
||||||
`$ tar -xcvf - my-files* | curl -X POST -H "Content-Type: application/gzip" -T - <bin_url>`
|
`$ tar -cz my-files* | curl -X POST -H "Content-Type: application/gzip" -T - <bin_url>`
|
||||||
|
|
||||||
|
## Enryption
|
||||||
|
`$ tar -cz my-files | gpg -c | curl -X POST -H "Content-Type: application/octet-stream" -T - <bin_url>`
|
||||||
|
`$ curl <bin_url> | gpg -d - | tar -xzf`
|
||||||
|
|
||||||
## Accessing the data
|
## Accessing the data
|
||||||
After uploading data you can access it by accessing <bin_url> with an optional file extension that suits the data that you uploaded.
|
After uploading data you can access it by accessing <bin_url> with an optional file extension that suits the data that you uploaded.
|
||||||
|
|
Loading…
Reference in a new issue