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