I have an upload directory which has information fed into it by users, each time a user registers they submit a picture which creates a folder for them in the upload directory and stores their photo(s) there. The issue is, by default this upload directory and the photos in them are 0755 and 0644 respectively and i cant quite figure out a way which will reliably change the defaults of new files and folders (umask seemsearching seemed fruitful but I thought i'd ask advice on my specific situation.)
I'd like it when a new folder is created in uploads that folder is only accessible by owner and the admin and the same for any files created in those folders. This is with the ultimate intention of making that their private "profile" area which only they and the admin can access. Any help would be greatly appreciated.