From 574e906439279646342349058840c40089d7152d Mon Sep 17 00:00:00 2001 From: Paul Z Date: Thu, 20 Apr 2023 14:14:51 +0200 Subject: [PATCH] added inforation to item_explanation.md --- src/item_explanation.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/item_explanation.md b/src/item_explanation.md index e3a9ba4..68726e4 100644 --- a/src/item_explanation.md +++ b/src/item_explanation.md @@ -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 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 `$ curl -H "Content-Type: text/x-uri" --data "https://example.com" ` @@ -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 ` ## Pipe into curl -`$ tar -xcvf - my-files* | curl -X POST -H "Content-Type: application/gzip" -T - ` +`$ tar -cz my-files* | curl -X POST -H "Content-Type: application/gzip" -T - ` + +## Enryption +`$ tar -cz my-files | gpg -c | curl -X POST -H "Content-Type: application/octet-stream" -T - ` +`$ curl | gpg -d - | tar -xzf` ## Accessing the data After uploading data you can access it by accessing with an optional file extension that suits the data that you uploaded.