[Html-widget] uploads in the results object?
John Napiorkowski
jjn1056 at yahoo.com
Tue Nov 14 16:45:44 GMT 2006
--- Carl Franks <fireartist at gmail.com> wrote:
> On 14/11/06, Bogdan Lucaciu <bogdan at wiz.ro> wrote:
> > On Tuesday 14 November 2006 11:12, Carl Franks
> wrote:
> > > Looks like you're the first person to try using
> H-W for file uploads!
> > > That's rather amusing.
> >
> > I use Catalyst::Request::Upload :)
>
> I think I must have done the same without thinking
> about it.
> Though, because $w->uploads() is compatible with
> $request->uploads, it
> would make sense to use H-W in conjunction with it's
> constraints. The
> All constraint would be suitable. We could also add
> some
> upload-specific constraints to check filesize,
> mimetype, ...
> I think we'll need to go through all the
> constraints, change suitable
> ones to also check file uploads - and document which
> ones work.
>
> Carl
I'm not completely I understand the expected way to
pass uploads... According to the catalyst manual,
$c->request->uploads returns a hashref, while the
uploads method seems to want an arrayref. Am I right
in thinking that the way process an html widget object
with uploads from catalyst should be:
my @uploads = map values %{$c->request->uploads};
$form->process( $c->request, [@uploads]);
Anybody make this work?
--john
>
> _______________________________________________
> Html-widget mailing list
> Html-widget at lists.rawmode.org
>
http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget
>
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
More information about the Html-widget
mailing list