{% extends 'layouts/base.njk' %} {% set title = app.name + ' - File upload' %} {% block scripts %} {% endblock %} {% block body %}
(except illegal ones)
There may be a desktop client at some point. For now, if you're an advanced user, you can setup scripts/macros.
To upload the file, you must:
Field name | Description | Optional? | Example |
---|---|---|---|
upload | The file field | No | - |
ttl | How much time (in seconds) to keep the file | Yes | 0 (never delete), 30 (delete after 30s) |
Example with curl:
curl -X POST -H 'Accept: application/json' \ -H "Authorization: very_secret_and_personal_token" \ -F 'upload=@path/to/local/file' \ https://ily.li/
curl -X PUT -H 'Accept: application/json' \ -H "Authorization: very_secret_and_personal_token" \ -F 'upload=@path/to/local/file' \ https://ily.li/my_very_important_file.png
curl -X POST -H 'Accept: application/json' \ -H "Authorization: very_secret_and_personal_token" \ -F 'upload=@path/to/local/file' \ -F 'ttl=30' \ https://ily.li/
# | Secret | Created at | Last used at | Actions |
---|---|---|---|---|
{{ token.id }} |
{{ token.secret }}
|
{{ token.created_at.toISOString() }} | {{ token.used_at.toISOString() }} | Revoke |