Create File Activity

Description

Creates a File object from the supplied content.

Usage

You could use a Send Web Request activity to download a file as an ArrayBuffer and then use a Create File activity to convert it into a File. Then you could use the Add Attachment activity to attach the file to a feature.

Inputs

Content

Required

Type: ArrayBuffer | Blob | String

The content to be added to the file.

Name

Required

Type: String

The name of the file.

Content Type

Optional

Type: "application/json" | "application/octet-stream" | "application/pdf" | "application/xml" | "application/zip" | "image/jpeg" | "image/png" | "text/csv" | "text/html" | "text/plain" | String

The MIME type of the content.

Outputs

result

Type: File

The file containing the input content.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Connectivity Requirements

This activity works when the device has intermittent connectivity to the network.

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, ArcGIS Web AppBuilder 2.4.