From 0b80a62f80ebe6b5ad6e9db99036020b8d7d0cea Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Thu, 1 Dec 2022 02:49:28 +0100 Subject: Add support for “secret” file URLs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #47 --- templates/index.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index d98482c..f36fb54 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,6 +6,9 @@ HTTP POST files here: curl -F'file=@yourfile.png' {{ fhost_url }} You can also POST remote URLs: curl -F'url=http://example.com/image.jpg' {{ fhost_url }} +If you don't want the resulting URL to be easy to guess: + curl -F'file=@yourfile.png' -Fsecret= {{ fhost_url }} + curl -F'url=http://example.com/image.jpg' -Fsecret= {{ fhost_url }} Or you can shorten URLs: curl -F'shorten=http://example.com/some/long/url' {{ fhost_url }} -- cgit v1.2.3