Wiki source code of Save to WebDAV server


Show last authors
1 {{content/}}
2
3 {{info}}This feature requires an appropriate license.{{/info}}
4
5 {{version major="7" minor="1" /}} This feature is available from {{formcycle/}} version 7.1
6
7 {{figure image="webdav_first_en.png" clear ="h1"}}
8 Configuration interface for actions of type //Save with WebDAV//.
9 {{/figure}}
10
11 This action allows files to be retrieved from various sources and stored on a WebDAV-enabled service. If multiple files are selected, they will be sent one after the other and an error will abort the entire action.
12
13 == Parameters ==
14
15 ; Files
16 : Selection of files to be saved. Files from previous actions, files from upload items, process attachments or form files can be selected. See [[Actions>>doc:Formcycle.Designer.Workflow.Actions.WebHome]] for a list of supported URL protocols.
17 ; WebDAV connection
18 : Selection of a connection to save the file.
19 ; Path
20 : Extending the WebDAV connection just selected. If no entry is made, the root directory is assumed as the storage location. If a directory is entered that does not exist, the action tries to create this directory. Click on the button "Show existing files and directories" to display and select the target folder. Please make sure that the appropriate permissions are available for the target directory. If necessary, contact the system administrator for more information.
21 ; Allow folder structure in placeholders
22 : If this option is activated, placeholders can contain path segments of the form '<folder name>/<folder name>'. Otherwise, the path separator ('/') is removed from the placeholder. Navigational references to parent file folders are not allowed and will be removed.
23
24 {{figure image="webdav_path_en.png" clear ="h1"}}
25 Here the sub-folder // y// has been selected and // z// has been appended, which will be newly created.
26 {{/figure}}
27
28 == Action placeholder ==
29
30 Actions of type //Save with WebDAV// provide [[Action Placeholder>>Formcycle.UserInterface.Variables||anchor="Action Placeholder"]] which can be used in subsequent actions.
31
32 === Default placeholder ===
33
34 ; [%$<action name>.SUCCESS%]
35 Returns whether action was successfully executed. Returns Boolean (true/false).
36 ; [%$<actionname>.RESULT%]
37 : Return all results provided by the action in a structured form.
38
39 ; [%$<action name>.ERROR_CODE%]
40 : The error code thrown in the event of an error in the action. Empty if no error occurred.
41 ; [%$<action name>.ERROR_MESSAGE%]
42 : The error message thrown in the event of an error in the action. Empty if no error occurred.
43
44 === Action-specific placeholders ===
45
46 ; [%$<ActionName>.RESULT.storageUrl%]
47 : Absolute URL to the directory where the files were saved, e.g. {{code}}http://localhost:8088/webdav/path/to/dir/{{/code}}