<div>As you might have picked up I&#39;m working on an REST api that uses JSON in the request.  I need to also allow large file uploads.</div><div><br></div><div>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.</div>

<div><br></div><div>AFAIK, there&#39;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?</div>

<div><br></div><div>BTW -- I don&#39;t see any code in HTTP::Body to limit body size.  Doesn&#39;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?</div>

<div><br></div><br clear="all"><br>-- <br>Bill Moseley<br><a href="mailto:moseley@hank.org">moseley@hank.org</a><br>