Skip to main content

UploadFile

Uploads a local file into the platform file system of the tenant.

Examples​

Upload into the root of the default file root:

octo-cli -c UploadFile -f "./report.pdf"

Upload into a folder path, creating missing folders and replacing an existing file:

octo-cli -c UploadFile `
-f "./report.pdf" `
-r "Files" `
-p "reports/2026/report.pdf" `
-cf `
-c "replace"

Options​

ShortLongRequiredDescription
-f--fileyesLocal file to upload
-r--rootnoWell-known name of the target folder root (default 'Files').
-p--pathnoTarget path below the root, ending with the file name ('/'-separated). Default: the name of the local file in the root.
-c--conflictnoWhat to do when the name exists: 'fail' (default), 'replace' or 'keepBoth'.
-cf--create-foldersnoCreate missing folders on the way.
-ct--content-typenoContent type; default: derived by the server from the file name.

Notes​

conflict=replace stores new content for the existing file; its id and links to other entities stay. keepBoth stores under the next free name ('a (1).pdf').

The maximum file size is set by the server (default 100 MB per file).