Folder, File
Folder and file selection
The list of common settings for parameters is available here.
To choose a file instead of a folder, the desired option has to contain "file": true
. When the field type is file
, the file is required and only the folder is passed, the validation will fail.
Specification
options
Available types:
Available parameters:
Examples
Result of RPC
To display the folder/file selector properly, the output from your RPC should contain only objects matching the following samples.
option
Available parameters:
Folder Selection
To make your folder selection work properly, you need to create a remote procedure that will return the corresponding folders. Each time a folder is selected, the RPC is called once again and the parameter path
containing the whole path in the string is passed. You need to filter the folders inside this RPC.
File Selection
The file selection is very similar to the folder selection, but keep in mind that files in your RPC result have to contain "file": true
property. Each time a file is selected, the RPC is called once again and the parameter path
containing the whole path in the string is passed. You need to filter the folders and files inside this RPC.
Last updated