... Is there a secure way to do this?
Check out carrier wave , the most important issue here IMO is making sure your rails app is not running as a privileged user so the users can't pass creative paths that result in them getting to files you want to keep from them.
As for getting access to other user accounts, you would need to make sure the files are marked as readable by anyone or from a group that all users belong to.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.