- 18 May 2022
- 1 Minute to read
-
DarkLight
-
PDF
Download Base64 text as file (Web only)
- Updated on 18 May 2022
- 1 Minute to read
-
DarkLight
-
PDF
Converts Base64 text back into a file and downloads it. This flow function only works on web at the moment.
Note that if the Base64 text comes from our Convert file to Base64 flow function, there is no need to change the MIME type argument.
If you provide the optional MIME type, you need to also include an appropriate filetype extension to the Filename, e.g. myFileName.pdf
.
If the conversion and download were successful, the first output is triggered, and the file will be downloaded.
If an error occurred while converting the Base64 back into a file, the second output is triggered.
Input arguments
Label | Key | Type | Required? | Default | Description |
---|---|---|---|---|---|
Base64 text | base64 |
String | Yes | – | Base64 text to be converted into a file and downloaded. If the text does not define MIME type internally, you need to provide it with the MIME type argument. |
Filename | filename |
String | Yes | filename | Filename for the downloaded file. If you set a custom MIME type, you need to include an appropriate filetype extention into the filename for the downloaded file to work correctly. |
MIME type | mimeType |
String | No | Use MIME type from Base64 text | You can optionally select the MIME type for the downloaded file, if your Base64 text does not already include it. Note that the output from the Convert file to Base64 flow function does include the MIME type. |
Output arguments
Number of outputs: 2
No output arguments.
Events
No events.
Errors
Label | Code | Description |
---|---|---|
Unknown error | unknown |
Thrown if the upload fails for an unknown reason |
No mimeType | noMimeType |
Thrown if no mimeType is provided and it is not included in the Base64 text. |
Platform not supported | platformNotSupported |
Thrown if the flow is used on a platform, that is not suppotred |