1

We want to override the below XML file in my custom extension.

vendor/magento/module-page-builder/view/adminhtml/pagebuilder/content_type/image.xml

We want to override this XML file because we want to allow another image extension type except for the default image type extension.

We add the below code in the Magento core image.xml file.

    <additional_data>
        <item name="uploaderConfig" xsi:type="array">
            <item name="allowedExtensions" xsi:type="string">jpg jpeg gif png xyz</item>
        </item>
    </additional_data>

So, When I add this xyz allowedExtensions type in the Magento core file It's working when we upload xyz type image in Pagebuilder but when we override this XML file our custom extension It's not working for me.

We tried the below way to override this xml file in our extension.

Vendor/Extension/view/adminhtml/pagebuilder/content_type/image.xml

    <additional_data>
        <item name="uploaderConfig" xsi:type="array">
            <item name="allowedExtensions" xsi:type="string">jpg jpeg gif png xyz</item>
        </item>
    </additional_data>
2
  • try to override this in theme Jun 21 at 14:19
  • My Magento does not available any custom theme I implement it in default fresh magento. Jun 22 at 5:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.