Documentation > CMS Template API Library > UploadedFile > GetLink()
GetLink
Returns a link to the attachment. If we are publishing, this will be the actual live link for the current server, otherwise this will be the same as Path.
public System.String GetLink()
Returns
string which is a link to this attachment
Code Example
C#
Sample:
<img src="<%= asset.UploadedFiles["my_file"].GetLink() %>" />