diff --git a/source/_docs/blueprint/selectors.markdown b/source/_docs/blueprint/selectors.markdown index 0788b923067..df15640a295 100644 --- a/source/_docs/blueprint/selectors.markdown +++ b/source/_docs/blueprint/selectors.markdown @@ -1059,6 +1059,13 @@ accept: List of media types the user is allowed to select. type: list required: false +multiple: + description: > + Allows selecting multiple media items. If set to `true`, the resulting value of + this selector will be a list instead of a single object. + type: boolean + default: false + required: false {% endconfiguration %} The output of the media selector, is an mapping with information about @@ -1105,6 +1112,19 @@ metadata: media-source://tts/cloud?message=TTS+Message&language=en-US&gender=female ``` +Example output when `multiple` is set to `true` (a list of media objects): + +```yaml +- media_content_id: media-source://media_source/local/image1.jpg + media_content_type: image/jpeg + metadata: + title: image1.jpg +- media_content_id: media-source://media_source/local/image2.jpg + media_content_type: image/jpeg + metadata: + title: image2.jpg +``` + ## Number selector The number selector shows either a number input or a slider input, that allows