{% extends "base.html" %} {% block head %} {% endblock %} {% block body %}

Curl API

blek! File has an API for uploading files via cURL. To upload a file via cURL, follow these instructions:

To upload a file, POST it like this: Copy!

curl -X POST {{env.instanceurl}}/curlapi/upload -F'file=@file.txt' -F'tos_consent=on'

To add a password, do it like this: Copy!

curl -X POST {{env.instanceurl}}/curlapi/upload -F'file=@file.txt' -F'filename=uwu' -F'tos_consent=on' -F'named=on'

Note that the named=on switch is required. Its needed because the curl API is basically a wrapper of this HTML form.

Important

Read the Terms of Service before uploading a file.
You agree to them by adding the tos_consent=on switch.

Web UI

Hey, it looks like you are viewing this page from a browser!
You can use the Web UI as well to upload a file!

Go to the web UI

{% endblock %} {% block scripts %} {% endblock %}