Hi,

When I need to use a File element, is it necessary to define the field that holds the file as a field that uses DBIx::Class::InflateColumn::File? (And do I need to use this inflator?)

Or what else do I need to do, because after I used

if ($form->submitted_and_valid) {
my $file = $c->config->{anunturi_dir} . $form->param('file')->basename;
$form->param('file')->copy_to($file);
$form->model->create;
}

in the database, in the "file" field, I have only the string "HTML::FormFu::QueryType::Catalyst=HASH(0x4e269cc)".

If it is normal to have this string there, how can I access the elements of the "file" field, like basename, filename...?

Or am I doing something wrong?

Thank you.

Octavian


_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to