Optionali18nOptionaliconOptional BetaopenOptionaltitleOptional BetaUploaderOptional BetauploadSpecifies how uploads should be initiated for this source.
'picker' (default): The studio opens a native file picker first,
then passes the selected files to the source via the uploader prop.
Progress is tracked via the uploader and shown in the studio UI.
'component': The studio renders the source component directly with
action: 'upload'. The source provides its own UI for selecting and
uploading files, and tracks progress internally. When complete, the
source calls onSelect with the uploaded assets.
Resolve how to open an asset in its original source.
This function is called for each AssetSource when determining if "Open in Source" should be available. The plugin should check
asset.source.nameto determine if it can handle this asset.Return values:
{ type: 'url', url: string }- Open the URL (in new window by default){ type: 'component' }- Render the asset source component with action='openInSource'falseorundefined- This plugin cannot handle this asset