Upload media

This guide explains how to create a workflow for uploading media. The recommended approach is to set up an action to upload media and call this action in Workshop using a Button group widget.

Prerequisites

Before you begin, ensure you have:

Part 1: Create an action type with a media reference parameter

First, you will create an action that allows users to upload media to your object type.

  1. Navigate to your object type with a media reference property in Ontology Manager. Select New from the action types section.

    Create an action type.

  2. Step through the dialog to configure rules and parameters on the action type.

    Configure action type rules.

    Action type parameter mapping.

Part 2: Configure the media reference parameter

Navigate to the Media Reference parameter section in your action form. The supported render options are File picker and Text input.

  1. Under Display, select File picker to enable drag-and-drop uploads.

    Configure display options.

    You can also choose to make the media reference parameter optional or required using the toggle.

    Configure the media reference parameter.

  2. Choose the Form layout to perform single uploads. To upload multiple media files at once, you can use the Table layout option.

    Action table layout for bulk uploads. se

Part 3: Add the action to Workshop

Once your action type is saved, you can add it to a Workshop application inline, or by using the Button group widget.

  1. In your Workshop application, add a Button group widget.

    Button group widget

  2. Select Action under ON CLICK, and choose the action you created.

    Configure action type in the Button group widget

  3. Select the button in your Workshop, and drag and drop files into your action form or table.

For more information about using media in Workshop applications, see Using media in Workshop.