-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File uploads should provide a streaming interface #28
Comments
Couldnt agree more with this - Derek, do you want to collaborate on making this happen? |
Sure thing. I think we can do this without major changes to Lift's guts. The simplest would be to add a flag to LiftRules to control whether the contents are sucked into a byte array or just grabbed as an input stream. Better would be modifying it so that FileParamHolder carries the input stream and maybe just has a utility method on it to return a byte array. |
Finished |
Imported from GitHub: http://github.com/dpp/liftweb/issues/28/find |
Imported from Assembla: http://www.assembla.com/spaces/liftweb/tickets/28 |
The current file upload API slurps the whole file into a byte array. This could exhaust server memory for large concurrency and/or large files. Add an API that allows streaming access.
The text was updated successfully, but these errors were encountered: