Hi Guys,
I have customized an event module for adding two file type fields for upload files, At the time of adding data file type fields are showing in add event form and file name also storing into database but when I try to open this form for edit data new created file type field does not show and loading does not complete.
Below is my ui componenet file type code
<field name="event_homepdf"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="source" xsi:type="string">Event</item> <item name="label" xsi:type="string" translate="true">Home PDF</item> <item name="visible" xsi:type="boolean">true</item> <item name="formElement" xsi:type="string">fileUploader</item> <item name="required" xsi:type="boolean">false</item> <item name="uploaderConfig" xsi:type="array"> <item name="url" xsi:type="url" path="eventmanager/event/upload"/> </item> </item> </argument> </field> <field name="event_gympdf"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="source" xsi:type="string">Event</item> <item name="label" xsi:type="string" translate="true">Gym PDF</item> <item name="visible" xsi:type="boolean">true</item> <item name="formElement" xsi:type="string">fileUploader</item> <item name="required" xsi:type="boolean">false</item> <item name="uploaderConfig" xsi:type="array"> <item name="url" xsi:type="url" path="eventmanager/event/gymupload"/> </item> </item> </argument> </field>
Here is my complete module
Hello @webkeonsanjeev
Hope it helps !
If you find our reply helpful, please give us kudos.
A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9