0

I've created a custom grid module and now I am trying to create and upload image for the Form.php. When I save it the image it gets uploaded to the right location which is πŸ‘ but it does not save the path in the database.

I am following this thread Marius's Answer

Sorry I can not comment on Marius's post, I don't have enough reputation.😞 Can anyone help me with this please? Thank you in Advance.

Jarnail S
4,70730 gold badges47 silver badges80 bronze badges
asked Jul 12, 2017 at 15:54
1
  • @Jay. Thank's for your edit suggestion it's really helpfull, I wonder if you can really help me with this issue please?. Commented Jul 13, 2017 at 9:07

1 Answer 1

0

I've found the issue why it wasn't saving the path I realize that it was because the function setImageFieldName $[entity]->setImageFieldName($imageName); didn't exit in my model\[Entity] so I created one.

e.g:

public function setImageFieldName()
{
 return $this->getData(self::IMAGE);
}
answered Jul 27, 2017 at 15:05

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.