UploadFile
POST /uploadFile
Upload a file.
Header
| Field | Value |
|---|---|
accessToken | accessToken set in the Config |
Body
The body is a FormData object containing the following fields, the file field is placed in the formData and the other fields in a body object:
| Field | Value | Type |
|---|---|---|
file | File to upload | File |
| Body | ||
folder | folder the file should be added to | string |
name(optional) | Changes the name of the uploaded file, still keeps the existing file extension though | string |
replace(optional) | If already exists replace | boolean |
test (optional) | Only log the file action but don’t execute it for testing purposes | true |
Example
{
"folder":"C:\\fileTest\\folder1",
"name":"testFile",
"replace":true
}Last updated on