DT4K
Diamond Member
I'm working on a website (VS2010 / .Net 4) that is going to provide access to downloadable documents for our customers. These are customer specific documents, so we need to make sure that each customer can only download their own documents. We will have a database with a record for each document, along with the account number of the customer who is allowed to see that file.
The problem is that I don't want the customers to have access to the directories that the documents are actually stored in.
So what is the best way to serve up files for our customers without giving them a link to the file itself or access to the directory where it exists?
I found one method here:
http://www.codeproject.com/KB/aspnet/SecureFileDownload.aspx
Is that still a good way to go or is there a better alternative? Any .Net classes that provide this kind of functionality?
The problem is that I don't want the customers to have access to the directories that the documents are actually stored in.
So what is the best way to serve up files for our customers without giving them a link to the file itself or access to the directory where it exists?
I found one method here:
http://www.codeproject.com/KB/aspnet/SecureFileDownload.aspx
Is that still a good way to go or is there a better alternative? Any .Net classes that provide this kind of functionality?