Data URI to File

Overview

The DataUri2File component converts a Data URI into a file. It extracts the file content and metadata from the Data URI and generates a downloadable file.

Input Parameters

Parameter
Type
Required
Description

dataUri

string

A Data URI representation of a file.

fileName

string

The desired name of the output file. If omitted, a default name (result.[EXT]) is assigned based on the file type.

Output Parameters

Parameter
Type
Description

fileId

string

The unique ID of the generated file.

fileName

string

The name of the resulting file.

Instructions

  1. Provide a Data URI

    • Input a valid Data URI string that represents a file.

  2. Specify a File Name (Optional)

    • Enter a desired file name with or without an extension.

    • If omitted, the extension is inferred from the file type.

  3. Processing

    • The component extracts the file content from the Data URI and saves it as a downloadable file.

    • Returns the fileId and fileName of the newly created file.

Last updated