Sorry for bugging you with this question.
After I got the $record from the database for filling the form with it,
using:
my $record = $c->model("DB::Records")->find($id);
if I add immediately:
undef $record->file->{handle};
Then everything works fine and I can use:
$form->model->update($record);
It seems that the line $form->model->update($record); doesn't let the
$record get out of scope.
If I don't use that line, $record gets out of scope without needing to undef
the file field explicitly.
Octavian
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu