diff --git a/templates/API.html b/templates/API.html index 3eb439a..93a42b4 100644 --- a/templates/API.html +++ b/templates/API.html @@ -35,8 +35,10 @@

Uploading a file

Linx-Randomize: yes

{% endif %} + {% if !keyless_delete %}

Specify a custom deletion key
Linx-Delete-Key: mysecret

+ {% endif %}

Protect file with password
Linx-Access-Key: mysecret

@@ -52,9 +54,12 @@

Uploading a file

“url”: the publicly available upload url
“direct_url”: the url to access the file directly
- “filename”: the (optionally generated) filename
+ “filename”: the random filename
+ {% if !keyless_delete %} “delete_key”: the (optionally generated) deletion key,
+ {% endif %} “access_key”: the (optionally supplied) access key,
+ “original_name”: the name of the original file,
“expiry”: the unix timestamp at which the file will expire (0 if never)
“size”: the size in bytes of the file
“mimetype”: the guessed mimetype of the file
@@ -115,7 +120,8 @@

Information about a file

“url”: the publicly available upload url
“direct_url”: the url to access the file directly
- “filename”: the (optionally generated) filename
+ “filename”: the random filename
+ "original_name": the name of the original file
“expiry”: the unix timestamp at which the file will expire (0 if never)
“size”: the size in bytes of the file
“mimetype”: the guessed mimetype of the file