Documentation > CMS Template API Library > PanelEntry > ClearUpload(String)

ClearUpload

Clears the specified upload's meta data from the panel. If there is an array of uploads with this name, they are all removed unless a specific element is named. Note: Do not include the post fix ":..." part of the name. Use the shortname "my_field", not "my_field:1"

public System.Void ClearUpload(String)

Parameters

NameDescriptionType
key The key used to identify the upload that you are clearing. System.String

Code Example

C#

Sample:
<% panel.ClearUpload("my_photo"); %>        

Connect with Crownpeak