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, want to limit that. 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? BTW -- I don't see any code in HTTP::Body to limit body size. Doesn't that seem like a pretty easy DoS for Catalyst apps? I do set a request size limit in the web server, but if I need to allow 1/2GB uploads or so then could kill the machine pretty easily, no? -- Bill Moseley mose...@hank.org
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/