1

We want to add the "Image Upload" option to table view type multiple fields under store configuration section using system.xml. Check the below screenshot for more clarification.

enter image description here

Any help/suggestion will be highly appreciated. Thank you.

1 Answer 1

0

Try this in your System.xml file its work

enter image description here

<field id="logo" translate="label" type="image" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Image Upload</label>
            <backend_model>Magento\Config\Model\Config\Backend\Image</backend_model>
            <upload_dir config="system/filesystem/media" scope_info="1">logo</upload_dir>
            <base_url type="media" scope_info="1">logo</base_url>
            <comment><![CDATA[Allowed file types: jpeg, gif, png.]]></comment>
        </field>

Thanks

2

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.