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.
Before you begin, ensure you have:
First, you will create an action that allows users to upload media to your object type.
Navigate to your object type with a media reference property in Ontology Manager. Select New from the action types section.
Step through the dialog to configure rules and parameters on the action type.
Navigate to the Media Reference parameter section in your action form. The supported render options are File picker and Text input.
Under Display, select File picker to enable drag-and-drop uploads.
You can also choose to make the media reference parameter optional or required using the toggle.
Choose the Form layout to perform single uploads. To upload multiple media files at once, you can use the Table layout option.
se
Once your action type is saved, you can add it to a Workshop application inline, or by using the Button group widget.
In your Workshop application, add a Button group widget.
Select Action under ON CLICK, and choose the action you created.
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.