/user/files/uploadUpload a single file to user storage
Uploads a single file to the authenticated user's storage by sending the file as the raw request body. Supply the URL-encoded full file path in path; an existing file with the same name is overwritten. Use X-SFTPGO-MTIME to provide the file modification time in Unix timestamp milliseconds.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The path query parameter must be URL encoded and identify the full file path; its parent directory must exist unless you use the mkdir_parents query parameter to create missing parent directories. Send the file as the raw request body, not as multipart form data. A 400 is returned for a bad request, a 401 when the request is unauthorized, a 403 when access is forbidden, a 413 when the maximum allowed size is exceeded, a 429 when the request limit is exceeded, and a 500 for an internal server error.