1. Streaming in chunks has nothing to do with security - you should have proper authentication and authorization layer wrapping these requests. 2. Handling chunks and large files are things which apache has perfected and we usually let apache do the nitty gritty. After all the validations are complete I just do return $r->lookup_file($file)->run(); - lookup_file is provided by Apache2::SubRequest
On Fri, Aug 16, 2019 at 1:37 PM Dan Ullom <danul...@gmail.com> wrote: > You could put the files behind Nginx and use your mod_perl web app as an > external authentication service. I've never done it but it doesn't look too > hard. > > On Fri, Aug 16, 2019, 12:25 PM John Dunlap <j...@lariat.co> wrote: > >> In Java servlets, I can stream a file back to the browser one chunk at a >> time. This has 2 benefits which interest me. >> 1) Files can be stored outside the web root so users cannot download them >> unless they are logged in, even if they know the path. >> 2) Large files can be streamed back to the client without having the >> entire file loaded into memory at the same time >> >> How would you recommend achieving similar functionality in mod_perl? >> >> -- >> John Dunlap >> *CTO | Lariat * >> >> *Direct:* >> *j...@lariat.co <j...@lariat.co>* >> >> *Customer Service:* >> 877.268.6667 >> supp...@lariat.co >> >