cancel
Showing results for 
Search instead for 
Did you mean: 

How to create image uploader in module using magento 2.4

How to create image uploader in module using magento 2.4

HI Guys~

I'm a beginner

i have a vendor backstage module (not magento admin),i want to add a button in this module's home page to upload image also can create directory.

But I'm not yet familiar with magento's construct, only create frontend button

this  upload button field is below

 

<referenceBlock name="vendor_navigation">
<block class="Vendor\Module\Block\Link\Current" name="upload_button" >
<arguments>
<argument name="name" xsi:type="string">vendor_new_product</argument>
<argument name="label" xsi:type="string" translate="true">upload</argument>
<argument name="font_awesome" xsi:type="string">fa fa-plus-square fa-fw</argument>
<argument name="sort_order" xsi:type="string">30</argument>
<argument name="level" xsi:type="string">1</argument>
</arguments>
</block>
</referenceBlock>

 I can see a button on module homepage,but i have no idea what to do next step in backend!

Hop anyone can help!

Thanks and Sorry for my bad English!