Skip to content

Commit

Permalink
Update API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrafrancyz committed May 9, 2022
1 parent 6f1517f commit c21450c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions templates/API.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ <h3>Uploading a file</h3>
<code>Linx-Randomize: yes</code></p>
{% endif %}

{% if !keyless_delete %}
<p>Specify a custom deletion key<br />
<code>Linx-Delete-Key: mysecret</code></p>
{% endif %}

<p>Protect file with password<br />
<code>Linx-Access-Key: mysecret</code></p>
Expand All @@ -52,9 +54,12 @@ <h3>Uploading a file</h3>
<blockquote>
<p>“url”: the publicly available upload url<br />
“direct_url”: the url to access the file directly<br />
“filename”: the (optionally generated) filename<br />
“filename”: the random filename<br />
{% if !keyless_delete %}
“delete_key”: the (optionally generated) deletion key,<br />
{% endif %}
“access_key”: the (optionally supplied) access key,<br />
“original_name”: the name of the original file,<br />
“expiry”: the unix timestamp at which the file will expire (0 if never)<br />
“size”: the size in bytes of the file<br />
“mimetype”: the guessed mimetype of the file<br />
Expand Down Expand Up @@ -115,7 +120,8 @@ <h3>Information about a file</h3>
<blockquote>
<p>“url”: the publicly available upload url<br />
“direct_url”: the url to access the file directly<br />
“filename”: the (optionally generated) filename<br />
“filename”: the random filename<br />
"original_name": the name of the original file<br />
“expiry”: the unix timestamp at which the file will expire (0 if never)<br />
“size”: the size in bytes of the file<br />
“mimetype”: the guessed mimetype of the file<br />
Expand Down

0 comments on commit c21450c

Please sign in to comment.