Ruby on Rails Saturday, August 22, 2015

I want to protect certain images from download. Only authorized users
would be able to download them.

As I upload images with Carrierwave, they are stored inside
public/uploads/image. Users can download them via urls.

How can I protect images inside image folder so anonymous users can't
access them?
I know I can make before_action which wont allow anonymous user to
download it via download link but the image is still accessible if the
user knows path to the folder where are images stored.
pls help me to find a solution

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/563f4f7128a99339c93b53889ceceb25%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment