I'm trying to use ASP.NET MVC to have a web app that will take details about a parent item and allow uploads and sharing of files which are associated with and stored under the name of the parent item.
The files I want to protect are stored in this way: ~/Files/{Item-GUID}/{Filename}.{ext}
The Item-Guid can be used to query the db for security permissions for the item. (users are logged as AD SIDs)
I need to know how to have ASP.Net respond to file requests for these files in the path ~/Files/ and use the /Item-GUID/ to check security permissions before serving the file to the user, and throw authentication errors if the user is not logged in or does not have access to the parent item.
I would appreciate any links or advice on where should I start here. Thanks In Advance.