Frage

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.

War es hilfreich?

Lösung

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);
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange
scroll top