I have created a module to upload and save images in magento2 backend.

When we upload image for the first time, image gets saved in the backend. But when next time updating another fields and saving the data, image gets deleted from the backend.

Please, any solutions for this issue?

  • 1
    Please update your code to investigate.. – Ranganathan Oct 24 '19 at 7:29

I have fixed this issue by removing the unset condition for checking images in the save controller.

|improve this answer|||||

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.