Documentation > CMS Template API Library > UploadedFiles > GetPath(String)
GetPath
The current value of the upload with the given key from the last edit session. If this is PostInput then the value is uncommitted.
public System.String GetPath(String)
Returns
The path to the uploaded file for the given key.
Parameters
Name | Description | Type |
---|---|---|
key | The key for the desired uploaded file | System.String |
Code Example
C#
Sample:
<img src="<%= asset.UploadedFiles["my_photo"].GetPath %>" />;