Forum: Ruby on Rails File Upload directory permissions

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.
E4f80e42794094c98a40bfebef4ec292?d=identicon&s=25 Alex Sharp (ajsharp)
on 2008-10-06 20:25
I am uploading files with the paperclip plugin. I have a /public/photos
directory which is a symlink to
/home/username/public_html/example.com/shared/system/photos. I have
entered the following command, in an attempt to set the permissions on
that directory:
sudo chmod -R 2750
/home/username/public_html/example.com/shared/system/photos

However, when I upload a new photo, the permissions on the folder
holding the files, and the files themselves, are all 777.

Am I doing something wrong with setting the permissions with that
directory, or is this something with paperclip?
This topic is locked and can not be replied to.