Wiki source code of Datei ausliefern
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{figure image="file_download_en.png"}} | ||
| 2 | //Delivery of files//: Files created in previous actions are delivered. Also, form uploads are added. | ||
| 3 | {{/figure}} | ||
| 4 | |||
| 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. | ||
| 6 | |||
| 7 | == Parameter == | ||
| 8 | |||
| 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. | ||
| 13 | |||
| 14 | == Action variables == | ||
| 15 | |||
| 16 | Actions of type //File download// provide [[action variables>>Formcycle.UserInterface.Variables||anchor="Action variables"]] which can be used in subsequent actions. | ||
| 17 | |||
| 18 | === Standard action variables === | ||
| 19 | |||
| 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. | ||
| 24 | |||
| 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. | ||
| 29 | |||
| 30 | === Action specific action variables === | ||
| 31 | |||
| 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 |