doc change
This commit is contained in:
parent
09124c8249
commit
ae357f3939
1 changed files with 1 additions and 5 deletions
|
@ -4,8 +4,7 @@ All following requests can only read the uploaded data.
|
||||||
|
|
||||||
To change the default expiration date, you can use the `?ttl=<seconds_to_live>` parameter.
|
To change the default expiration date, you can use the `?ttl=<seconds_to_live>` parameter.
|
||||||
|
|
||||||
## Upload a link
|
After uploading data you can access it by accessing <a href="<bin_url"><bin_url></a> with an optional file extension that suits the data that you uploaded.
|
||||||
`$ curl -H "Content-Type: text/x-uri" --data "https://example.com" <bin_url>`
|
|
||||||
|
|
||||||
## Upload a image
|
## Upload a image
|
||||||
`$ curl -H "Content-Type: image/png" -T my-image.png <bin_url>`
|
`$ curl -H "Content-Type: image/png" -T my-image.png <bin_url>`
|
||||||
|
@ -22,6 +21,3 @@ $ tar -cz my-files | gpg -co tmp.tar.gz
|
||||||
$ curl -H "Content-Type: application/octet-stream" -T tmp.tar.gz <bin_url>
|
$ curl -H "Content-Type: application/octet-stream" -T tmp.tar.gz <bin_url>
|
||||||
$ curl <bin_url> | gpg -d - | tar -xzf
|
$ curl <bin_url> | gpg -d - | tar -xzf
|
||||||
```
|
```
|
||||||
|
|
||||||
## 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.
|
|
||||||
|
|
Loading…
Reference in a new issue