Wiki source code of Encode Base64
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{version major="7" minor="2" patch="1" /}} This action is available from {{formcycle/}} version 7.2.1 onwards. | ||
| 2 | |||
| 3 | {{figure image="encodeBase64_en.png" width="400" clear="h1"}} | ||
| 4 | Konfigurationsoberfläche der Aktion //Als Base64 kodieren// | ||
| 5 | {{/figure}} | ||
| 6 | |||
| 7 | |||
| 8 | The action //Encode as Base64// allows you to encode a given file into a Base64 string or a data URI. | ||
| 9 | |||
| 10 | == Paramerter == | ||
| 11 | |||
| 12 | === Encoding settings === | ||
| 13 | |||
| 14 | ; File | ||
| 15 | : The file to be encoded. | ||
| 16 | |||
| 17 | == Action variables == | ||
| 18 | |||
| 19 | Actions of type //Encode as Base64// provide [[Action variables>>Formcycle.UserInterface.Variables||anchor="HActionvariables"]] which can be used in subsequent actions. | ||
| 20 | |||
| 21 | |||
| 22 | === Standard action variables === | ||
| 23 | |||
| 24 | ; [%$<action name>.SUCCESS%] | ||
| 25 | : Return whether action was successfully executed. Returns Boolean (true/false). | ||
| 26 | ; [%$<action name>.RESULT%] | ||
| 27 | : Return all results provided by the action in structured form. | ||
| 28 | |||
| 29 | ; [%$<action name>.ERROR_CODE%] | ||
| 30 | : The error code thrown in case of an error in the action. Empty if no error occurred. | ||
| 31 | ; [%$<action name>.ERROR_MESSAGE%] | ||
| 32 | : The thrown error message in the action's error case. Empty if no error occurred. | ||
| 33 | |||
| 34 | === Action specific action variables === | ||
| 35 | |||
| 36 | ; [%$<action name>.RESULT.base64Text%] | ||
| 37 | : The encoded Base64 string. | ||
| 38 | |||
| 39 | ; [%$<action name>.RESULT.base64DataUri%] | ||
| 40 | : The encoded data URI. | ||
| 41 | |||
| 42 | ; [%$<action name>.RESULT.mimeType%] | ||
| 43 | : The media type of the file that was encoded. |