Files
A File object represents a file or folder on your Files.com site. The type field is file for files and directory for folders.
Download File
XML Element
<filescom:download-file />
Authorization Requirement
Available to all authenticated keys or sessions.
| Parameter | Description |
|---|---|
| path String Required | Path to operate on. |
Content
The payload will be a stream of the file content. See Streaming in Mule Apps for strategies on handling streaming data.
Upload File
XML Element
<filescom:upload-file />
Authorization Requirement
Available to all authenticated keys or sessions.
| Parameter | Description |
|---|---|
| path String Required | Path to operate on. |
| content Content Required | Content to be written into the file. |
The above example uses the payload as the content. You can also specify the content explicitly in the operation:
Find File/Folder by Path
XML Element
<filescom:show-file />
Authorization Requirement
Available to all authenticated keys or sessions.
| Parameter | Description |
|---|---|
| path String Required | Path to operate on. |
List Folders by Path
XML Element
<filescom:list-folders />
Authorization Requirement
Available to all authenticated keys or sessions.
| Parameter | Description |
|---|---|
| path String Required | Path to operate on. |
Create Folder
XML Element
<filescom:create-folder />
Authorization Requirement
Available to all authenticated keys or sessions.
| Parameter | Description |
|---|---|
| path String Required | Path to operate on. |
Delete File/Folder
XML Element
<filescom:delete-file />
Authorization Requirement
Available to all authenticated keys or sessions.
| Parameter | Description |
|---|---|
| path String Required | Path to operate on. |
Copy File/Folder
XML Element
<filescom:copy-file />
Authorization Requirement
Available to all authenticated keys or sessions.
| Parameter | Description |
|---|---|
| path String Required | Path to operate on. |
| destination String Required | Copy destination path. |
Move File/Folder
XML Element
<filescom:move-file />
Authorization Requirement
Available to all authenticated keys or sessions.
| Parameter | Description |
|---|---|
| path String Required | Path to operate on. |
| destination String Required | Move destination path. |