Skip to main content
Version: Next

Create File From Base64

Creates a file based from a Base64 content

Description

Create a new file instance in the local database based on a content base64-encoded. The MIME-type value specifies the content-type of the file. The content must either be a base64 string or a DataURL (base64 string of the form data:[<mediatype>][;base64],<base64 content>).

The newly created file is not persisted. Use the brick Persist Object to do so.

Inputs

  • Control Flow (Control Flow)
  • file name (String): The name for the created file.
  • mime type (String): MIME type of the file.
  • base64 content (String): Content to put in the file, in Base64 or DataURL format.

Outputs

  • Control Flow (Control Flow)
  • Error Flow (Error Flow)
  • file (File)