59 lines
1.9 KiB
HTML
Executable File
59 lines
1.9 KiB
HTML
Executable File
<pre>
|
|
<title>THE FULL POINTER</title>
|
|
THE FULL POINTER
|
|
================
|
|
{% set fhost_url = url_for("fhost", _external=True).rstrip("/") %}
|
|
HTTP POST files here:
|
|
curl --proxy 127.0.0.1:4444 -F'file=@yourfile.png' {{ fhost_url }}
|
|
|
|
Verbose HTTP POST:
|
|
curl --proxy 127.0.0.1:4444 -F v=1 -F'file=@yourfile.png' {{ fhost_url }}
|
|
|
|
Upload command output:
|
|
command | curl -T - --proxy 127.0.0.1:4444 {{ fhost_url }}
|
|
|
|
Upload command output with stderr:
|
|
command 2>&1 | curl -T - --proxy 127.0.0.1:4444 {{ fhost_url }}
|
|
|
|
Or you can shorten URLs:
|
|
curl --proxy 127.0.0.1:4444 -F'shorten=http://example.com/some/long/url' {{ fhost_url }}
|
|
|
|
* When uploading large files, the I2P tunnel may freeze.
|
|
|
|
File URLs are valid for at least {{config["MIN_DAYS"]}} days and up to a {{config["MAX_DAYS"]}} days (see below).
|
|
Shortened URLs do not expire.
|
|
{% set max_size = config["MAX_CONTENT_LENGTH"]|filesizeformat(True) %}
|
|
Maximum file size: {{ max_size }}
|
|
Not allowed: Nothing
|
|
|
|
|
|
FILE RETENTION PERIOD
|
|
---------------------
|
|
|
|
retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3)
|
|
|
|
days
|
|
{{config["MAX_DAYS"]}} | \\
|
|
| \\
|
|
| \\
|
|
| \\
|
|
| \\
|
|
| \\
|
|
| ..
|
|
| \\
|
|
{{config["MAX_DAYS"]/2}} | ----------..-------------------------------------------
|
|
| ..
|
|
| \\
|
|
| ..
|
|
| ...
|
|
| ..
|
|
| ...
|
|
| ....
|
|
| ......
|
|
{{config["MIN_DAYS"]}} | ....................
|
|
0{{ ((config["MAX_CONTENT_LENGTH"]/2)|filesizeformat(True)).split(" ")[0].rjust(27) }}{{ max_size.split(" ")[0].rjust(27) }}
|
|
{{ max_size.split(" ")[1].rjust(54) }}
|
|
|
|
{{ config['ENDING'] }}
|
|
</pre>
|