swapnilyeole — 2011-11-09T13:14:41-05:00 — #1
I have a page in which i upload a circular & also select users who can view this page using multiple select dropdown box.
Now how to display the uploaded file to selected users when they login and not to other users.
Can anybody help.
Thanks in advance.
chris_upjohn — 2011-11-09T20:43:29-05:00 — #2
The easiest way would be to create a permissions table in your database and assign them to that specific permissions group then check it when they are viewing the uploaded files.
eruna — 2011-11-10T09:33:33-05:00 — #3
If you want to protect certain files from being downloaded, they can be stored above the root level. A php script would then be used to fetch the file, checking permissions first. IE: download.php?file=protected.doc
The download file would send protected.doc to the browser.