Re: [Catalyst] Large requests with JSON?

2010-02-06 Thread Bill Moseley
On Fri, Feb 5, 2010 at 8:56 PM, Tomas Doran bobtf...@bobtfish.net wrote: On 5 Feb 2010, at 20:54, Bill Moseley wrote: AFAIK, there's no way to stream parse JSON (so that only part is in memory at any given time). What would be the recommended serialization for uploaded files -- just use

[Catalyst] Large requests with JSON?

2010-02-05 Thread Bill Moseley
As you might have picked up I'm working on an REST api that uses JSON in the request. I need to also allow large file uploads. HTTP::Body::OctetStream will chunk the request body and send to a temp file, but Catalyst::Action::Deserialize::JSON will load the temp file into memory. Obviously,

Re: [Catalyst] Large requests with JSON?

2010-02-05 Thread Tomas Doran
On 5 Feb 2010, at 20:54, Bill Moseley wrote: AFAIK, there's no way to stream parse JSON (so that only part is in memory at any given time). What would be the recommended serialization for uploaded files -- just use multipart/form-data for the uploads? Don't? Why not just do a PUT