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

ClearUpload

Causes the specified upload's meta data to be removed from the asset when the asset is saved after post_input runs.

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:

            
            <% context.InputForm.ClearUpload("my_photo"); %>
            
            

Connect with Crownpeak