[html-formfu] Processing a query

Benjamin Martin benmartin at venda.com
Tue Jun 7 09:45:49 GMT 2011


thanks Peter.

I thought that might be the answer, better get my hacking hat on. :)



On 07/06/11 10:38, Peter Shangov wrote:
> 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<benmartin at venda.com>
>> To: html-formfu at 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 at lists.scsys.co.uk
>> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>




More information about the HTML-FormFu mailing list