If I were to serve files, would send_file via rails be slow? I think they will be 200mb avi files. Would it be better to send them via /public ? But I would like to track the clicks on each file - which makes me think that I can''t serve them out on /public as those clicks will not go through my application. Any help or suggestions? -- Posted via http://www.ruby-forum.com/.
Julian ''Julik'' Tarkhanov
2006-May-31 22:56 UTC
[Rails] Sending files through send_file or by httpd?
On 1-jun-2006, at 0:33, Ken Kam wrote:> If I were to serve files, would send_file via rails be slow? > I think they will be 200mb avi files. > > Would it be better to send them via /public ? > > But I would like to track the clicks on each file - which makes me > think > that I can''t serve them out on /public as those clicks will not go > through my application. > > Any help or suggestions?Do a redirect or make use of the lighttpd facilities for special downloading. Lighttpd threads very well - an FCGI doesn''t thread at all so you will be losing a whole dispatcher until the download is complete. -- Julian ''Julik'' Tarkhanov please send all personal mail to me at julik.nl
Julian ''Julik'' Tarkhanov wrote:> On 1-jun-2006, at 0:33, Ken Kam wrote: > >> Any help or suggestions? > Do a redirect or make use of the lighttpd facilities for special > downloading. Lighttpd threads very well - an FCGI doesn''t thread at > all so you will be losing a whole dispatcher until the download is > complete. > > -- > Julian ''Julik'' Tarkhanov > please send all personal mail to > me at julik.nlAnd what if that redirected link is accidentally leaked? Is there a way to prevent that? And could you elaborate on what lighttpd facilities there are for special downloading? And thank you for answering the question :D. -- Posted via http://www.ruby-forum.com/.
Julian ''Julik'' Tarkhanov
2006-May-31 23:56 UTC
[Rails] Re: Sending files through send_file or by httpd?
On 1-jun-2006, at 1:32, Ken Kam wrote:> Julian ''Julik'' Tarkhanov wrote: >> On 1-jun-2006, at 0:33, Ken Kam wrote: >> >>> Any help or suggestions? >> Do a redirect or make use of the lighttpd facilities for special >> downloading. Lighttpd threads very well - an FCGI doesn''t thread at >> all so you will be losing a whole dispatcher until the download is >> complete. > > And could you elaborate on what lighttpd facilities there are for > special downloading?http://lighttpd.net/documentation/secdownload.html -- Julian ''Julik'' Tarkhanov please send all personal mail to me at julik.nl
Ken Kam
2006-Jun-01 00:06 UTC
[Rails] Re: Re: Sending files through send_file or by httpd?
Julian ''Julik'' Tarkhanov wrote:> On 1-jun-2006, at 1:32, Ken Kam wrote: > >> special downloading? > http://lighttpd.net/documentation/secdownload.html > -- > Julian ''Julik'' Tarkhanov > please send all personal mail to > me at julik.nlCheers -- Posted via http://www.ruby-forum.com/.