doc change

This commit is contained in:
Paul Zinselmeyer 2023-10-18 21:08:46 +02:00
parent 09124c8249
commit ae357f3939

View file

@ -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.
## Upload a link
`$ curl -H "Content-Type: text/x-uri" --data "https://example.com" <bin_url>`
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.
## Upload a image
`$ 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 <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.