Documentation > CMS Template API Library > InputForm > SaveUploadedFile(String,UploadedFile)
SaveUploadedFile
Save an uploaded file with the given key
public System.Void SaveUploadedFile(String,UploadedFile)
Parameters
Name | Description | Type |
---|---|---|
key | The name to save it under. Don't include "upload#". If null or an empty string is passed, we will use the key in the object | System.String |
uploadedFile | The uploaded file. | CrownPeak.CMSAPI.UploadedFile |
Code Example
C#
Sample:
context.InputForm.SaveUploadedFile("my_photo_copy", context.InputForm.UploadedFiles["my_photo"]);