Forum: Ruby on Rails authentication for uploaded files

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.
1b507a552850441a516948d488962d2e?d=identicon&s=25 Sniper Abandon (mokkai)
on 2009-04-21 07:09
how to set authentication for uploaded files ?

i am using paperclip plugin to upload files
it using "public/system" folder to store files

the web server serving file from "public/system" folder
directly

but i want to serve the file only after authetication

how to do that?
5772c599ccab3081e0fffb1d54f3b6de?d=identicon&s=25 Andrew Timberlake (andrewtimberlake)
on 2009-04-21 07:20
(Received via mailing list)
On Tue, Apr 21, 2009 at 7:09 AM, Sniper Abandon
<rails-mailing-list@andreas-s.net> wrote:
>
> how to do that?

I wrote a blog post about doing this with Nginx at
http://ramblingsonrails.com/how-to-protect-downloa...

Andrew Timberlake
http://ramblingsonrails.com
http://www.linkedin.com/in/andrewtimberlake

"I have never let my schooling interfere with my education" - Mark Twain
This topic is locked and can not be replied to.