Downloads a file from the filesystem. Streams binary file content directly to the response.
| Name | Type | Description |
|---|---|---|
| id | int | Filesystem object id. Required. |
| option | string | Set to open to request inline display in the browser instead of download. Optional. |
Sends binary file data directly to the response.
Returns a thumbnail image for a file. Rules:
| Name | Type | Description |
|---|---|---|
| id | int | Filesystem object id. Required. |
Sends binary image data directly to the response.
Uploads a single chunk of a multi-part file upload.
| Name | Type | Description |
|---|---|---|
| section | string | Section the file belongs to (e.g. trackeritem). Required. |
| refId | int | Id of the related object. Required. |
| chunkSeq | int | 1-based sequence number of this chunk. Required. |
| id | string | Upload session hash returned by the first chunk call. Required for chunks after the first. |
| size | int | Total expected file size in bytes. Optional; validated against the configured upload limit. |
Associative array with key id containing the upload session hash.
Renames a filesystem object and moves the physical file to match the new name.
| Name | Type | Description |
|---|---|---|
| id | int | Filesystem object id. Required. |
| fileName | string | New file name (minimum 3 characters). Required. |
Associative array with key location containing the updated URL of the filesystem object.
Creates or updates filesystem metadata for an uploaded file, returning the URL of the resulting record.
| Name | Type | Description |
|---|---|---|
| section | string | Section the file belongs to (e.g. trackeritem). Required. |
| refId | int | Id of the related object. Required. |
| fileName | string | File name. Required for new records. |
| id | int | Filesystem object id. When provided, updates the existing record. |
Associative array with key location containing the URL of the filesystem object.