Hello everyone!
I am currently working on a project, part of which involves allowing users to upload media files. Now the problem lies here. A user's media directory is created when they add their first file. What I want to do is dynamically add a web.config file to the folder at this time such that only the user who owns the files in the directory may access it. The way I can do it, at the moment, is to read a template web.config and output that file to the directory, adding the desired tags. But I believe there is a better way to do it. Can someone make a suggestion. Also, Is there some other way I can restrict access to the folders using a single web.config file in the root upload directory? I know I can add different auth tags to the web.config for each folder, but that again would me reading it and modifying it, and I don't want to get into that at the moment.
Thanks!
Sid