Welcome Guest, Not a member yet? Register   Sign In
Make public files private
#1

[eluser]Christophe28[/eluser]
Hi,

I have a website where people can upload photos. At this moment all photos are public. They are stored in the /files/username/photo.jpg

I'm including the functionallity users can also upload private photos. Is there a function to block requests if the photo is marked in the DB as private?

What I really want, if possible, is that all photos are behind the /public folder. For example in /var/www/domain.com/files/ and that /files/username/photo.jpg is just a fictional URL to request a photo.

Is this possible, any suggestions?

Best,
Christophe




Theme © iAndrew 2016 - Forum software by © MyBB