Upload an encrypted file
POST/create/file
Streams an already-encrypted file as raw bytes and returns its ID. Settings
travel in headers, not in the body. The body must be binary OpenPGP data
(not ASCII-armored) that opens with a key packet, and must stay under
MAX_FILE_SIZE from GET /config.
Absent on a --read-only server or with --disable-upload. The share
link is https://yopass.example.com/#/f/{id}/{key}.
When the server runs with --require-auth, send an API token or a
signed-in session cookie.
Request
Responses
- 200
- 400
- 401
- 413
- 500
Stored.
Wrong Content-Type, missing or invalid X-Yopass-Expiration, body is
not an OpenPGP message, or a header breaks server policy.
Sign-in or an API token is required.
An error. message says what went wrong.
An error. message says what went wrong.