On Tue, Apr 21, 2009 at 7:09 AM, Sniper Abandon
<[email protected]> wrote:
>
> 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?

I wrote a blog post about doing this with Nginx at
http://ramblingsonrails.com/how-to-protect-downloads-but-still-have-nginx-serve-the-files

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

"I have never let my schooling interfere with my education" - Mark Twain

--~--~---------~--~----~------------~-------~--~----~
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