I am using the Paperclip plugin to store video attachments into a
remote server (via an ftp storage module written by Damian Caruso)  it
works well...
Now I would like my web app user to be able to download back this
attachment into their local pc

I can use

def download
..
    Net::SCP.start( hostname, username, :password => password ) do|
scp|
      scp.download!('httpdocs/video-library/clips/requests/46/
CraigStadler.mp4', '/tmp')
    end
.. which download the file first in the /tmp folder of my web app,
then doing a sendfile...

but is there any other solution ( direct link to remote server is not
a solution... )

thanks for your help

Yves

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to