dialog_media_upload
Shows the admin dialog for uploading a media item. See Media.
The dialog accepts either a local file or a URL.
Arguments:
intentiscreate,connect,select, orupdate. It defaults toupdatewhenidis present and toconnectotherwise.ididentifies the media resource whose file is replaced forupdate.subject_idandpredicateconnect a newly created medium to a resource;predicatedefaults todepiction.titleoverrides the dialog heading.stayprevents redirecting after creation.centercontrols the dialog's centering option and defaults to1.actioncan be repeated to run actions after a successful upload.callbacknames a safe JavaScript callback that receives the new media id.
{% button text="Add image" action={dialog_media_upload intent="connect" subject_id=id predicate="depiction"} %}