Hi Benjamin, I think the right way to approach this problem would be to write a HTML::FormFu::QueryType::Dancer class. The HTML::FormFu::QueryType namespace exists specifically to manage the different ways frameworks handle file uploads. Then you will only have to do:
$params = params(); $formfu->query_type( 'Dancer' ); $formfu->process( $params ); Cheers, -- Peter ----- Original Message ----- > From: Benjamin Martin <benmar...@venda.com> > To: html-formfu@lists.scsys.co.uk > Cc: > Sent: Tuesday, 7 June 2011, 11:18 > Subject: [html-formfu] Processing a query > > Hello All, > > I am using formfu with Dancer, something like so: > > $params = params(); > $formfu->process( $params ); > > $params is a simple hashref of form name/values. > > I now want to process file uploads. > > Is there a way to include uploads in the $params hash? > > Will I have to construct something that simulates a CGI object and pass that > to > the $formfu->query( ... )? ... if so, are there any pointers/example you can > provide. > > Many thanks for any pointers/advice, > > -Ben > > _______________________________________________ > HTML-FormFu mailing list > HTML-FormFu@lists.scsys.co.uk > http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu > _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu