cURL
curl --request POST \ --url https://api.example.com/api/file/upload/{path} \ --header 'Content-Type: multipart/form-data' \ --header 'X-Session-API-Key: <api-key>' \ --form file='@example-file'
{ "success": true }
Upload a file using path parameter (legacy, for backwards compatibility).
Deprecated since v1.15.0 and scheduled for removal in v1.20.0.
Prefer /file/upload?path=... to avoid path-encoding issues and align with other file endpoints.
/file/upload?path=...
Absolute file path.
Successful Response
Was this page helpful?