2

I am not able to upload multiple files in magento2.3.0?

Here is my code:

$fieldset->addField(
            'commercial_pic',
            'file',
            [
                'name' => 'commercial_pic',
                'data-form-part' => $this->getData('target_form'),
                'label' => __('Commercial Doc'),
                'title' => __('Commercial Doc'),
                'multiple'=> 'multiple',
                'value' => $partner['commercial_pic'],
                'after_element_html' => '<label style="width:100%;">
                    Allowed File Type : [jpg, jpeg, gif, png]
                </label>
                <img style="margin:5px 0;width:250px;"
                src="'.$this->getBaseUrl().'pub/media/avatar/customer/commercial/'.$partner['commercial_pic'].'"
                />',
            ]
        );

Any help would be appreciated.

  • You have to check its file size also. May be your file size exceed its limit. – Chirag Parmar Jul 4 at 10:44
  • I have inspect the particular field, there itself not showing multiple – Amy Jul 4 at 10:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.