Direct File Linking
I have an application where users use custom controls to upload document to various "Documents and Files" libraries in Sitefinity. For instance, we have a document called "test-document.docx" which we upload to "test-library".
The control also provides links to the users to download the files.
For instance, a link to the above document might be something like....
www.mydomain.com/.../test-document.docx
The problem is, when I take this link, and try to access it when I am logged out, the document still downloads, when it should deny the anonymous user access.
I have locked down the permissions of the document libraries, and also tried locking down the permissions of the individual document, but with no success.
Hello,
Can you please let us know if the same behavior reproduces when using the Sitefinity Download list widget? If you need to display the links only to authenticated users, maybe you could do a check inside your code for:
if
(!HttpContext.Current.User.Identity.IsAuthenticated)
//do not render link