Documentation > CMS Template API Library > Asset > UploadedFiles
UploadedFiles
Uploaded Files that are saved on this asset. Use this collection to read uploaded file data. You can change the value of the UploadFile.Path parameter, but you need to pass it back to asset.SaveUploadedFile() to save it.
Type
CrownPeak.CMSAPI.UploadedFiles
Value
The Uploaded Files.
Code Example
C#
Sample:
Asset myAsset = Asset.Load("/PathTo/Asset"); if(myAsset.IsLoaded) { UploadedFile document = myAsset.UploadedFiles["document_upload"]; // Reference file attached to asset under the field name "document_upload" if(document.IsLoaded) { string extractedJson = document.ExtractedContentRawJson; Out.WriteLine(extractedJson); } }