Appearance
Set File
Creates or updates a file on the the server.
Permissions
| Command Kind | Needed User Kind |
|---|---|
| Write | Admin, Designer, Sys |
Parameters
| Name | Type | Description | Required | Default | Values |
|---|---|---|---|---|---|
| File | string | Name/path of the file ([Directory/File]). The root directory is the 'Files' directory of the database on the server. | yes | ||
| Base64 | boolean | If 'True' the file is base64 encoded. The default value is 'False'. This is useful if file is not a text file. | no | false | |
| CreateDirectory | boolean | If 'True', the target directory will be created if it does not exist. Only the last directory will be created and not the entire directory tree. The default value is 'True'. | no | true | |
| Overwrite | boolean | If 'True' an existing file is overwritten. The default value is 'True'. | no | true | |
| Text | array of string | Text of the file. | no |
Result
| Name | Type | Description |
|---|---|---|
| Kind | string | Kind of the file: File or Directory. |
| Name | string | Name of the file. |
| File | string | Name and path of the file. |
| Parent | string | Parent directory of the file. |
| Size | number | Size of the file in kilobyte. |
| Permissions | integer | Number of permissions of the file. |
Code
text
SET FILE
FILE=[string, Needed]
BASE64=[boolean, default=false]
CREATEDIRECTORY=[boolean, default=true]
OVERWRITE=[boolean, default=true]
TEXT=[string, Multiple]