Well, one way is to have it outside of the IIS context, so instead of having them under C:\inetpub\wwwroot
change it to something like C:\temp\files.
Your database has a GUID associated with the document name, and use the GUID to display a link to the file.
in the action of your controller, you just accept the GUID, get the file name and then submit the file in your answer.
source
share