Save a file into a uibuilder instance folder.

Inputs

payload string|buffer
REQUIRED. The data to output to the file. Use a buffer for binary file types (video, audio, image, etc).
folder string
If supplied and the folder setting is blank, will be used as the output folder.
fname string
If supplied and the file name setting is blank, will be used as the output file name.

Node Settings

URL selection
Select the existing uibuilder Node instance via its URL setting. This cannot be overridden by a msg property at this time.
Sets the top-most (root) folder that can be written to.
Folder string
The name of an existing or new folder inside the chosen uibuilder instance root.
".." cannot be included in the path to prevent escaping from the instance root.
If the folder does not exist, an error is generated unless the "Create Folder" flag is ticked.
msg.folder overrides this as long as this is left blank.
File string
The name of an existing or new file inside the chosen uibuilder instance root and folder.
If the file does not exist, it will be created. Otherwise it is silently overwritten.
Neither "/" or "\" can be included in the file name. The name must be valid for the OS you are using.
msg.fname overrides this as long as this is left blank.
Create Folder? boolean
If set and the given folder name does not exist inside the instance root folder, the new folder will be automatically created.
Reload? boolean
If ticked, any client browser tabs connected to the selected uibuilder node will be reloaded. This may be useful when auto-changing static resource files (e.g. index.html). It is mostly useful when testing. Use with caution on a live system.
Encoding string
The optional string encoding to be used when the input data is a string. It defaults to Node.js's utf8. See Node.js documentation for what can be provided here.
Mode integer
The optional file output mode. Defaults to 0o666 See Node.js documentation for what can be provided here.
This only impacts newly created files. It is ignored when overwriting existing files.
On Windows, only the write permission can be set.
Topic string
Standard optional topic name.
Name string
Standard optional name. Has no impact other than on the Editor display.