I'm trying to access an uploaded bizform file that was uploaded using the FileUploaderComponent upon form submission. The API documentation I linked below is less than helpful.
I can get the form submission column data but I'm unable to retrieve the submitted file. My simplified code is shown below:
var path = "/assets/bizformfiles/" + file.SystemFileName;
var fileBytes = CMS.IO.File.ReadAllBytes(path);
var ms = new MemoryStream(fileBytes)
{
Position = 0
};
emailMessage.Attachments.Add(new(ms, file.OriginalFileName));
Environment
Xperience by Kentico version: [31.5.3]
.NET version: [10]
Execution environment: [SaaS]
Link to relevant https://docs.kentico.com/documentation/developers-and-admins/api/files-api-and-cms-io