paperclip private files

Posted by Dmitriy Likhten on Stack Overflow See other posts from Stack Overflow or by Dmitriy Likhten
Published on 2010-04-12T15:39:53Z Indexed on 2010/04/12 15:43 UTC
Read the original article Hit count: 363

Is there a way to make paperclip attachments private? As in only where I explicitly want a user to be able to access a file, can the user access the file.

Obviously the file can't be in a public directory, but how do I get paperclip to check the user's access rights when trying to access that file to begin with?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby-on-rails-plugins