<div dir="ltr">Team,<div><br></div><div>The following is the code fragment to read the body of a multipart data (as per the documentation), when it is the contents of a uploaded file.</div><div><br></div><div><div>stream_file(Req) -></div><div>  case cowboy_req:part_body(Req) of</div><div>    {ok, Body, Req2} -></div><div>      {ok, Body, Req2};</div><div>    {more, Body, Req2} -></div><div>      stream_file(Req2)</div><div>  end.</div></div><div><br></div><div>The question is, when the {more, Body, Req2} case clause is reached, should the 'Body' need to get concatenated like <<OldBody/binary, Body/binary>>, OR when looped, the library collects the next pieces of chunks into the 'Body' automatically?</div><div><br></div><div>Thanks,</div><div>Theepan</div></div>