T have Work on Dynamic Option that contain file-upload field and i want to save dynamic option with file in magento 2.

enter image description here

Here we can see Option with Dynamic Option that contain file field.

What the use of

  • what issue exactly you are facing ? Need to implement Dynamic Option ?? – Narendra Vyas Mar 27 '19 at 6:38
  • 'each option with image' i want to save image in option's array – Bhavesh Prajapati Mar 27 '19 at 7:56

are your images uploaded well ? If it's the case, this is how you can save images in your database : When you are saving you should call something like this : $data = $this->getRequest()->getPostValue(); Just debug $data. Normally you will see an array with all data you need from your form. Just get the field name of your upload file field, pass it to your model and save :)

Hope it helps

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.