I'm using UI component for building admin form. In the form, I have an image uploader field.
Using this uploader, I'm able to select only one image to upload. But I need to upload multiple images.
On referring to Magento docs, isMultipleFiles
option needs to be true.
<field name="image" sortOrder="10" formElement="imageUploader">
<settings>
<label translate="true">Image</label>
<elementTmpl>ui/form/element/uploader/image</elementTmpl>
<visible>true</visible>
<validation>
<rule xsi:type="boolean" name="required-entry">true</rule>
</validation>
</settings>
<formElements>
<imageUploader>
<settings>
<isMultipleFiles>true</isMultipleFiles>
<validation>
<rule xsi:type="boolean" active="false" name="required-entry">true</rule>
</validation>
<uploaderConfig>
<param xsi:type="string" name="url">sample/image/upload</param>
</uploaderConfig>
<previewTmpl>Module/image-preview</previewTmpl>
</settings>
</imageUploader>
</formElements>
But still, the uploader is able to select only one image. Am I missing something here?