merging index.html changes to boop.html

This commit is contained in:
Siina Mashek 2022-12-15 11:58:50 +02:00
parent b5230f7406
commit a63e516808

View file

@ -86,21 +86,49 @@
<h1>{{ title }}</h1> <h1>{{ title }}</h1>
<hr> <hr>
<p>
HTTP POST files here: HTTP POST files here:
<pre>curl -F'file=@yourfile.png' {{ fhost_url }}</pre> <pre>curl -F'file=@yourfile.png' {{ fhost_url }}</pre>
You can also POST remote URLs: You can also POST remote URLs:
<pre>curl -F'url=http://example.com/image.jpg' {{ fhost_url }}</pre> <pre>curl -F'url=http://example.com/image.jpg' {{ fhost_url }}</pre>
If you don't want the resulting URL to be easy to guess:
<pre>curl -F'file=@yourfile.png' -Fsecret= {{ fhost_url }}</pre>
<pre>curl -F'url=http://example.com/image.jpg' -Fsecret= {{ fhost_url }}</pre>
Or you can shorten URLs: Or you can shorten URLs:
<pre>curl -F'shorten=http://example.com/some/long/url' {{ fhost_url }}</pre> <pre>curl -F'shorten=http://example.com/some/long/url' {{ fhost_url }}</pre>
</p>
<p>
Alternatively, you can use PUT: Alternatively, you can use PUT:
<pre>curl -X PUT -T 'yourfile.png' {{ fhost_url }}</pre> <pre>curl -X PUT -T 'yourfile.png' {{ fhost_url }}</pre>
</p>
<p>File URLs are valid for at least 30 days and up to a year (see below).<br/> <p>File URLs are valid for at least 30 days and up to a year (see below).<br>
Shortened URLs do not expire.</p> Shortened URLs do not expire.
</p>
<p>
Files can be set to expire sooner by adding an "expires" parameter (in hours)
<pre>curl -F'file=@yourfile.png' -Fexpires=24 {{ fhost_url }}</pre>
OR by setting "expires" to a timestamp in epoch milliseconds
<pre>curl -F'file=@yourfile.png' -Fexpires=1681996320000 {{ fhost_url }}</pre>
<p>Maximum file size: {{ max_size }}</p> <p>
<p>Not allowed: {{ not_allowed }}</p> Expired files won't be removed immediately, but will be removed as part of
the next purge.
</p>
<p>
Whenever a file that does not already exist or has expired is uploaded,
the HTTP response header includes an X-Token field. You can use this
to perform management operations on the file.
To delete the file immediately:
<pre>curl -Ftoken=token_here -Fdelete= {{ fhost_url }}/abc.txt</pre>
To change the expiration date (see above):
<pre>curl -Ftoken=token_here -Fexpires=3 {{ fhost_url }}/abc.txt</pre>
</p>
<p>
Maximum file size: {{ max_size }}<br>
Not allowed: {{ config["FHOST_MIME_BLACKLIST"]|join(", ") }}
</p>
<h3>FILE RETENTION PERIOD</h3> <h3>FILE RETENTION PERIOD</h3>