Hi,
i have a script that allows only authorised users to upload files to a certain folder.
however i do not know how to prevent people from downloading freely without login.
I need the solution in php.
I have googled around but nothing straight forward as yet.
currently in my document root i have a folder called admin and a subfolder called uploads inside the admin. so only admin role can upload . both editor and admin can download. what should i do in this case?
Please advise.