File_column, Apache and secure downloads.
Tuesday, January 30th, 2007File_column wonderfully handles uploads for a ruby on rails application. Understandably once a user has uploaded a document it allows everybody to view it by placing the document like so.
[rails_root]/public/user/file_upload/1/photo.jpg
In this example, ‘user’ is our model and file_upload is a column within the ‘users’ table. This is fantastic as it means everybody can now [...]