[Html-widget] uploads in the results object?

John Napiorkowski jjn1056 at yahoo.com
Tue Nov 14 16:56:58 GMT 2006


Also, it appears that the catalyst upload object isn't
100% the same as the apache::upload object that
html::widget needs...  The biggest missing thing the a
'name' field.  I think this is because in catalyst the
upload method returns a hashref keyed by the field
name, whereas apache upload wants the field name as an
accessor in the upload object since it seems to return
everything as an arrayref.

Seems like there is a lot to do here!

--john

--- John Napiorkowski <jjn1056 at yahoo.com> wrote:

> 
> --- 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
> 
> _______________________________________________
> 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