Joomla accessiblemedia Form Field Type
The accessiblemedia form field type provides modal access to the media manager to select an image like the media field. Users with appropriate permissions will be able to upload files.
In addition to media field, it offers a text field to add an alternative text.
XML Field Definition
<field
name="myimage"
type="accessiblemedia"
directory="stories" />
Additional Parameters
directory: This is the directory from which the user will be able to choose a file. This attribute should be relative to the top level images/ folder. The default is the images/ folder.
preview: It shows or hides the preview of the currently chosen image. The default value is true.