views:

204

answers:

2

By default when I upload new images, the folder created have 777 permissions
Is there a way to restrict permissions on the new folders?

Thanks

A: 

I want to do that for security reasons cause I save the images in the public folder

Mathieu
A: 

Other way you can do this by changing in the paperclip plugin itself.

Change the permission as you want in the below file of paperclip plugin /lib/paperclip/storage.rb

Dinesh Atoliya