Large Multifile Upload

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Large Multifile Upload

danthegoodman
I am in need of handling large uploads, sometimes up to 25 files, each around 40MB.

I understand that the request is eagerly read and that issue #555 will address this to some degree, I just wanted to communicate that this is preventing us from using Ratpack for at least one of our microservices.

We still use ratpack for many of our other services and we really like it.

--Danny
Reply | Threaded
Open this post in threaded view
|

Re: Large Multifile Upload

Luke Daley
Administrator
Hi Dan,

So you can bump the max request file size on a global basis right now. By setting maxContentLength in the server config.

Or, is the problem that you can't actually afford to pull this data into memory eagerly?

Either way, I completely agree we need a better story here.

Thanks for the kind words on Ratpack.
Reply | Threaded
Open this post in threaded view
|

Re: Large Multifile Upload

danthegoodman
The problem is that I'm not able to afford pulling 1GB of files into memory at once for one request. I can handle one file at a time, but not all at once.

Thank you for the tip regarding maxContentLength, I'll keep that in mind incase I have a situation where I can handle larger eager reads.

--Danny