Generate URL from FileId in DotNetNuke
I'm trying to crea开发者_C百科te a link to a file to put into an email when a user completes their upload. How do you do this in DotNetNuke? The file is saved correctly and I have all the file information but I cannot find a way to generate a link to any file that I could share in an email or post elsewhere online. I looked at LinkClick as used in the Documents module but that didn't lead anywhere.
You should just need to call Globals.LinkClick
and pass in "FileID=" + fileId
as the "link" (first parameter).
精彩评论