Forum: Ruby on Rails Sending files through send_file or by httpd?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
539a351d5e60062693df414e9bbb3465?d=identicon&s=25 Ken Kam (kenkam)
on 2006-06-01 00:33
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?
A2b2f4ee23989dc68529baef9cbddcd6?d=identicon&s=25 Julian 'Julik' Tarkhanov (Guest)
on 2006-06-01 00:58
(Received via mailing list)
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.nl
539a351d5e60062693df414e9bbb3465?d=identicon&s=25 Ken Kam (kenkam)
on 2006-06-01 01:32
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.nl

And 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.
A2b2f4ee23989dc68529baef9cbddcd6?d=identicon&s=25 Julian 'Julik' Tarkhanov (Guest)
on 2006-06-01 01:59
(Received via mailing list)
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.nl
539a351d5e60062693df414e9bbb3465?d=identicon&s=25 Ken Kam (kenkam)
on 2006-06-01 02:06
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.nl

Cheers
This topic is locked and can not be replied to.