# 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. See [upload media](../../action-types/upload-media/index.md) for more information. ## Prerequisites Before you begin, ensure you have: * An object type with a [media reference property](../media-in-ontology/index.md). * Permissions to create action types in your ontology. See [ontology permissions](../../object-permissioning/ontology-permissions/index.md) for more information. ## 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.](../../../assets/c6874885d28696d140fdc029439767cc01ebc930d2dacea096a2d1fc8cffe461.webp)

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

![Configure action type rules.](../../../assets/6ea76a1b82e847d890351fa8bb468b1cf067cbe3d00725c0fc37b5e1ea0dc769.webp)

![Action type parameter mapping.](../../../assets/14068d3175201ed015461a8ef067185199af5f61eb1590a736a66a570824640a.webp)

## 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.](../../../assets/cf14464fed08c2a89a518aa1d1017e5a05f23299d43b4d990a07ea1cf09f6dd1.webp)

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

![Configure the media reference parameter.](../../../assets/0922d5995e302223251344e60f53f8e895c7cfc3ecf6d113a3bc43389995255c.webp)

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.](../../../assets/c767a7110831a324cd257d3e60daed7adab9dbce1a8dff12637469d247bc1649.webp)

## 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](../../workshop/widgets-button-group/index.md).

![Button group widget](../../../assets/e9c96a8587eadd96fc798fbfb8def1c286e0bbfc1b5d759987f148dc28c97ca2.webp)

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

![Configure action type in the Button group widget](../../../assets/eb8f10b9960cc260d3f6985c06be19154b8e110f8e5b6129d1a0e3e38317f867.webp)

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](../media-in-workshop/index.md).