Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento 2.3.0 Group Icon Not Uploading #43

Closed
mageprince opened this issue Oct 12, 2020 · 1 comment
Closed

Magento 2.3.0 Group Icon Not Uploading #43

mageprince opened this issue Oct 12, 2020 · 1 comment

Comments

@mageprince
Copy link
Owner

Recently some developers reporting an issue in Magento 2.3.0 about group icon upload.

image

This issue is not reproducible into later versions of the Magento.

Check the below comment to solve this issue.

@mageprince
Copy link
Owner Author

Change formElement fileUploader to imageUploader of icon field from faq group form UI component.

File: app/code/Mageprince/Faq/view/adminhtml/ui_component/mageprince_faqgroup_form.xml

From:

<item name="formElement" xsi:type="string">fileUploader</item>

To:

<item name="formElement" xsi:type="string">imageUploader</item>

<field name="icon">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="dataType" xsi:type="string">string</item>
            <item name="source" xsi:type="string">FaqGroup</item>
            <item name="label" xsi:type="string" translate="true">Group Image/Icon</item>
            <item name="visible" xsi:type="boolean">true</item>
            <item name="formElement" xsi:type="string">imageUploader</item>
            <item name="elementTmpl" xsi:type="string">ui/form/element/uploader/uploader</item>
            <item name="previewTmpl" xsi:type="string">Mageprince_Faq/image-preview</item>
            <item name="required" xsi:type="boolean">false</item>
            <item name="sortOrder" xsi:type="number">30</item>
            <item name="uploaderConfig" xsi:type="array">
                <item name="url" xsi:type="url" path="mageprince_faq/faqgroup/upload"/>
            </item>
        </item>
    </argument>
</field>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant