POST with multipart /api/storage/v1/upload/[token]/[path], /api/storage/v1/upload-createdirs/[token]/[path], /api/storage/v1/upload-overwrite/[token]/[path] and /api/storage/v1/upload-createdirs-overwrite/[token]/[path]
Upload a file to destination path.
uploadreturns an error if the directory the file is uploading to does not exist, or the file path is occupied.upload-overwriteoverwrites whatever is in the path.upload-createdirscreate parent directory for the upload target if it does not exist.upload-createdirs-overwritea mix of both
Request
[multipart file post]
Response
Status code: 201
{
"type": "file item created"
}
Possible errors
invalid tokennot verifiedpermission deniedpath occupied(non overwrite only)file not foundstorage fullexternal