Hi, i’ve servers (not connected directly, only by internet), one with a
rails app, and another with the big static files. The problem is, to
access to one of them file you have to be logged, and when you click on
a link the rails app will send you the file, but using the other server.
Something like a redirect to download a file, but the real url of the
file shouldn’t be displayed.
I’m the user, i go to the site. I try to insert the url like
domain.com/download/3 and the rails app tell me that i have to login, i
login, i try another time and the app send me the file xyz.zip. Now,
because i’m curious i do a properties on the current download to show
where the file is stored, and i see domain.com/download/3, and not the
real one which would be domain2.com/files/xyz.com
What do you think? Is it possible ? There is send_file, but iirc it’s
just for local files.