@kashif73
If there are no user permissions in place preventing the user from seeing other folders, than another simpler db approach might be helpful. When you, Kashif, give permission for another user to access a file, add a reference to it in the db. eventually the db would look like this:
user fileName filePath
John Expenses \kashif\pdfdocs\Expenses.pdf
Fred Expenses \kashif\pdfdocs\Expenses.pdf
Jan Expenses \kashif\pdfdocs\Expenses.pdf
John Receipt History \kashif\pdfdocs\receipts.pdf
Then when John logs in, a script could check the db for any files beyond his own that are available to him, and display them - it would show him that he can have access to Expenses.pdf and receipts.pdf and provide links to access those files, but if Fred logs in, he only sees Expenses.pdf plus his own files and if Terry logs in he doesn't see any files but his own. This way you wouldn't have to save the file to the db, just put a reference to it there. Does this make sense?
Jared