From 38a0144ad7832f855d4c1ff4774e925d17f78052 Mon Sep 17 00:00:00 2001 From: orhun Date: Fri, 27 Aug 2021 21:12:18 +0300 Subject: [PATCH] docs(readme): update README.md about expiring links --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 863f242..7116461 100644 --- a/README.md +++ b/README.md @@ -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" "" +``` + +(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