Re: Ability to link directly to files in shared file module
The challenge is in securing access to the files so that only users with permission can download it. If the files were stored on disk using their original extensions like .doc or whatever, they could be requested directly by url, but since requests for .doc would be handled directly by IIS and bypass .NET (unless you do some major configuration changes on the server) there is no way for .NET code to intercept requests for .doc files and apply permission checks. Anyone who knows the url can download the file. The shared files module handles this by storing files on disk with a .config extension which is protected by default in ASP.NET, and the original file names are stored in the db. An url request to an .config file will not be able to retrieve the file.
The easiest way I can think of to implement a solution that allows emailing a link to a file while still keeping it secure would involve making a special page like ~/SharedFileDownload.aspx?pageid=x&mid=y&fileid=z
I could add a column for Download Link in the grid with a preconfigured link for each file, then you could right click the link and choose copy link location and then paste that into an email that you send. The SharedFileDownload.aspx page would verify the user has permission and if so return the file.
Would a solution like that be sufficient for your needs?