Media Upload

❗️

This Web Control is Deprecated

The Media Upload Web Control has been deprecated. If you are not working within an existing Web Flow in which the Media Upload Web Control was already placed, this Control will not be accessible in the Studio. Please use the File Upload Web Control instead.

organizing info

The Media Upload Web Control collects files from app users. This Control prompts the user to select an item for upload and return an asset reference to the uploaded asset. The final result is a List of Assets.

General

Control Properties

Type

The type of Asset the File Upload Web Control will accept. The default choices are Images, PDF, and video. If required to accept multiple types, add the asset types as an expression in quotes. 

For example: 

"image/jpeg, image/png, application/pdf, image/svg+xml, image/gif, audio/mpeg, video/mp4"

Advanced Control Properties

Link Expiration

Expects type number.

The number of milliseconds (an integer) that the downloaded Asset still has before expiration. This value is updated each time the download link is fetched.

This property is only valid on Assets with a visibility of type Private, and providing a value for this property will automatically make the uploaded Asset Private. If the Link Expiration property is left blank, the Asset will be a global Asset. 

Image Size

Expects type number.

Allows for resizing of Assets as they are uploaded. This property is an object representing the Number of pixels wide and tall the Asset should be upon resizing its width and height.

Thumbnail Placeholder Src

Expects type string.

A URL to a placeholder image to be used while the asset is uploaded before a preview can be generated.

📘

Because Airkit Apps are hosted from a secure, HTTPS, resource, all hosted images must be hosted on a secure site.

Data Binding

Expects type asset.

By default, a Variable of type Asset is generated at the Web Page level to store the data from the input. Users can also edit the Data Binding property and create their own Variables.

Style and Layout

Check Common style properties of web controls for details on how to style this control.

Actions

Value Changed

Triggers the set actions whenever the user uploads media.

Metadata about this event can be accessed through the event namespace.

Advanced

State

Is Visible

Expects type boolean.

If TRUE the control will be visible. If FALSE the control will not be displayed. If the field is empty, the control will be visible.

Is Disabled

Expects type boolean.

If TRUE the control will be disabled and the user will not be able to interact with the control. If FALSE the email input will be enabled. If the field is empty, the control will be enabled.

Example

An Asset Input can collect PDFs from users. Insert an Asset Input control into a Data Flow and set the Type to:

application/pdf
organizing info