Wiki source code of EncodeBase64
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 | Configuration interface of the action //Encode Base64// | ||
| 5 | {{/figure}} | ||
| 6 | |||
| 7 | The action //Encode Base64// allows you to encode a file into a Base64 string and a data URI. | ||
| 8 | |||
| 9 | == Parameters == | ||
| 10 | |||
| 11 | === Encoding settings === | ||
| 12 | ; File | ||
| 13 | : The file to be encoded. | ||
| 14 | |||
| 15 | == Action variables == | ||
| 16 | |||
| 17 | Actions of type //Decode Base64// provide [[Action variables>>Formcycle.UserInterface.Variables||anchor="HActionvariables"]] which can be used in subsequent actions. | ||
| 18 | |||
| 19 | === Standard action variables === | ||
| 20 | |||
| 21 | ; [%$<action name>.SUCCESS%] | ||
| 22 | : Return whether action was successfully executed. Returns Boolean (true/false). | ||
| 23 | ; [%$<action name>.RESULT%] | ||
| 24 | : Return all results provided by the action in structured form. | ||
| 25 | |||
| 26 | ; [%$<action name>.ERROR_CODE%] | ||
| 27 | : The error code thrown in case of an error in the action. Empty if no error occurred. | ||
| 28 | ; [%$<action name>.ERROR_MESSAGE%] | ||
| 29 | : The thrown error message in the action's error case. Empty if no error occurred. | ||
| 30 | |||
| 31 | === Action specific action variables === | ||
| 32 | |||
| 33 | ; [%$<action name>.RESULT.base64Text%] | ||
| 34 | : The encoded Base64 string. | ||
| 35 | |||
| 36 | ; [%$<action name>.RESULT.base64DataUri%] | ||
| 37 | : The encoded data URI. | ||
| 38 | |||
| 39 | ; [%$<action name>.RESULT.mimeType%] | ||
| 40 | : The mime type of the file. |