I'm using Magento 2.3.4, and now I'm extending the category form to add new field input image like this:


  <field name="banner_io" sortOrder="40" formElement="imageUploader">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="source" xsi:type="string">category</item>
            <label translate="true">Banner IO</label>
            <comment translate="true">Dimension: 900px X 354px</comment>
            <scopeLabel>[STORE VIEW]</scopeLabel>
                        <param xsi:type="url" name="url" path="catalog/category_image/upload"/>
                    <openDialogTitle>Media Gallery</openDialogTitle>
                    <allowedExtensions>jpg jpeg gif png</allowedExtensions>

in here I can set the max file size, how I can set minimum/maximum width and height?


1 Answer 1


You can set Width & Height in dashboard.

Stores > Configuration > Advanced > System > Images Upload Configuration

enter image description here

  • 1
    Is this gonna effect all the image uploader ? i just need it for this specific input not all
    – jojo
    Commented Mar 3, 2020 at 6:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.