Wiki source code of ZIP Komprimieren


Show last authors
1 {{figure image="zip_compress_en.png" width="400" clear="h1"}}
2 User to set up action of type //Compress files//. This can be used to store multiple files in a ZIP archive.
3 {{/figure}}
4
5 The //Compress files// action type allows to compress files in zip format created by previous actions. Furthermore, multiple files can also be combined into one zip archive and sent to the user as one file.
6
7 == Parameters ==
8
9 === Files to compress ===
10
11 ; Files
12 : Selection of files to be included in the zip archive. See [[actions>>doc:Formcycle.Designer.Workflow.Actions.WebHome]] for a list of supported URL protocols.
13
14 === Storage options for the created files ===
15
16 ; Output file name
17 : Name of the output file.
18 ; Attach file to form record
19 : If this option is selected, files created in this action will be attached to the form record. Otherwise, they are only available for other actions within the workflow processing in the same processing chain.
20
21 == Action variables ==
22
23 Actions of type //Compress files// provide [[Action variables>>Formcycle.UserInterface.Variables||anchor="HActionvariables"]] which can be used in subsequent actions.
24
25 === Standard action variables ===
26
27 ; [%$<action name>.SUCCESS%]
28 : Return whether action was successfully executed. Returns Boolean (true/false).
29 ; [%$<action name>.RESULT%]
30 : Return all results provided by the action in structured form.
31
32 ; [%$<action name>.ERROR_CODE%]
33 : The error code thrown in case of an error in the action. Empty if no error occurred.
34 ; [%$<action name>.ERROR_MESSAGE%]
35 : The thrown error message in the action's error case. Empty if no error occurred.
36
37 === Action specific action variables ===
38
39 ; [%$<action name>.RESULT.compressedSize%]
40 : Size of the created ZIP archive, in bytes.
41 ; [%$<actionname>.ERROR.message%]
42 : Error message returned if the compressing file could not be written to or read from the file system.