Wiki source code of Datei ausliefern
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
12.1 | 1 | {{figure image="file_download_en.png"}} |
2 | //Delivery of files//: Files created in previous actions are delivered. Also, form uploads are added. | ||
![]() |
1.1 | 3 | {{/figure}} |
4 | |||
![]() |
12.1 | 5 | Actions of type //Deliver file// allows to deliver files directly to the browser (download), which were created during processing. If multiple files are selected, a ZIP file containing the individual files is automatically created. Please note that this action does not work if the workflow was triggered, for example, by a timed event, because in this case there is no browser to which the file could be sent. |
![]() |
1.1 | 6 | |
7 | == Parameter == | ||
8 | |||
![]() |
12.1 | 9 | ; Files |
10 | : Files to be returned. See [[actions>>doc:Formcycle.Designer.Workflow.Actions.WebHome]] for a list of supported URL protocols. | ||
11 | ; Force browser to show download dialog | ||
12 | : Files to be delivered as download in the browser. | ||
![]() |
1.1 | 13 | |
![]() |
12.1 | 14 | == Action variables == |
![]() |
9.2 | 15 | |
![]() |
12.1 | 16 | Actions of type //File download// provide [[action variables>>Formcycle.UserInterface.Variables||anchor="Action variables"]] which can be used in subsequent actions. |
![]() |
9.2 | 17 | |
![]() |
12.1 | 18 | === Standard action variables === |
![]() |
1.1 | 19 | |
![]() |
12.1 | 20 | ; [%$<Actionsname>.SUCCESS%] |
21 | : Whether the action could be processed successfully. Evaluates to a boolean, ie. true or false. | ||
22 | ; [%$<Actionsname>.RESULT%] | ||
23 | : Return all results provided by the action as JSON. | ||
![]() |
1.1 | 24 | |
![]() |
12.1 | 25 | ; [%$<Actionsname>.ERROR_CODE%] |
26 | : In case of error the thrown error code of the action. Empty if no error has occurred. | ||
27 | ; [%$<Actionsname>.ERROR_MESSAGE%] | ||
28 | : In case of error the thrown error message of the action. Empty if no error has occurred. | ||
![]() |
3.2 | 29 | |
![]() |
12.1 | 30 | === Action specific action variables === |
![]() |
3.2 | 31 | |
![]() |
12.1 | 32 | ; [%$<Actionsname>.RESULT.fileSize%] |
33 | : Size of the returned file, in bytes. | ||
34 | ; [%$<Actionsname>.ERROR.message%] | ||
35 | : Error code returned if the file delivery fails. | ||
36 | |||
37 | |||
38 | |||
39 |