[jifty-devel] Filehandles in actions

Jesse Vincent jesse at bestpractical.com
Wed Mar 7 14:10:09 EST 2007




On Wed, Mar 07, 2007 at 02:03:22PM -0500, jpollack at gmail.com wrote:
> I'm having some bad luck using a render as 'upload' param in a Action.
> What data type, exactly, is returned from argument_value, when the
> param is an upload box?  I expected an IO::Handle, but no.  I've tried
> passing what it returns to Archive::Zip's readFromFileHandle, both
> straight, and after passing it through IO::File's fdopen.  Both don't
> work.
> 

Attached is sample code for how we do this in hiveminder. If you could
turn it into a recipe for the cookbook, I'd be grateful

-jesse

> Any ideas?
> Joshua
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
> 

-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: UploadTasks.pm
Type: text/x-perl
Size: 2011 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20070307/7f504951/UploadTasks.pm


More information about the jifty-devel mailing list