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.

Supported Environments

Environments capable of running this activity

Server

 

Client

Geocortex Web

Geocortex Mobile

Geocortex Viewer for HTML5

Web AppBuilder

Levels of Support:      Full Support      Partial Support      No Support

Offline Support

This activity works when the device is offline.

Version Information

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