I don''t know how far back you want to start, but I''ve done a
Wordpress
plugin in PHP that does something like this:
http://www.almosteffortless.com/wordpress/secure-files/
The basic idea is that you have to store the file above the web root, and
then use your code to access it - instead of just linking to it.
So, you''re going to have to figure out how to save files above or
outside of
the web root, then how to check that a user is logged in
(acts_as_authenticated?), and then how send those files to the user
(that''s
the readfile function in PHP).
That''s the best I can do.
- Trevor
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060613/7303635b/attachment.html