FriendsOfCake/cakephp-upload

Notice when saving a record without attachment

asecondwill opened this issue · 0 comments

When I save a user with just text fields, not the avatar (upload) field, I get a notice when it tried to unset the avatar field.

Undefined index: avatar [ROOT/vendor/josegonzalez/cakephp-upload/src/Model/Behavior/UploadBehavior.php, line 78]

I'm using
josegonzalez/cakephp-upload 5.0.0-beta
cakephp "4.0.8"