summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMia Herkt <mia@0x0.st>2022-12-01 02:49:28 +0100
committerMia Herkt <mia@0x0.st>2022-12-01 02:49:28 +0100
commit0b80a62f80ebe6b5ad6e9db99036020b8d7d0cea (patch)
tree22c40208bc81cf8203c7f4e5f801900c624aa4de /templates
parented84d3752c56f06e73876af0ab162999562a9d61 (diff)
Add support for “secret” file URLs
Closes #47
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html3
1 files changed, 3 insertions, 0 deletions
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 }}