I have created a custom form in the backend and it is working fine for single image browse. If I select only one image then it is working fine. My requirement is, I want to select multiple images with the browse button. If there is any alternate solution then please let me know also.
-
refer this : magento.stackexchange.com/questions/198910/…– Aasim GoriyaCommented Aug 6, 2018 at 6:04
-
it is for frontend side form.I want to use in the backend.– Sunny RahevarCommented Aug 6, 2018 at 6:06
-
Check this : softprodigy.com/store/article/…– Aasim GoriyaCommented Aug 6, 2018 at 6:12
-
@AasimGoriya Thanks for your link but i think this is not the proper solution. can you describe answer in more detail please– JaiminCommented Aug 6, 2018 at 8:40
-
i don't have idea of "Multiple Browse Button", i asked my colleagues too. But alternate solution is you can allow Multiple Image upload.– Aditya ShahCommented Aug 6, 2018 at 9:35
2 Answers
If your form is rendering from UI form component then using isMultipleFiles
option you can Defines whether multiple files can be uploaded.
For more reference go through Magento Devdocs
I hope it helps!
if you use magento fileuploader UI componet then you need to set isMultipleFiles option value true.it's ddefault vlaue false,for more details please visit the magento devdocs link https://devdocs.magento.com/guides/v2.4/ui_comp_guide/components/ui-fileuploader.html
hope it will help you.