Skip to content

FileInfo

Represents a stored file: its ID, name, MIME type and content hash.

Remarks

Methods that add or copy files, such as Files.AddBase64 and Files.Copy, return a FileInfo; use Files.Get to read the information of an existing file. File fields of forms store the file ID, so store FileInfo.Id in the process data to show the file on a form. Read the content with Files.GetBase64 or Files.GetString.

Examples

Show the name and type of an uploaded file

1
2
3
var file = $Files.Get($Xml.Evaluate('Attachment'));

$Xml.SetValue('AttachmentInfo', file.Name + ' (' + file.MimeType + ')');

Capabilities

Metadata

Properties