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 | |
Capabilities¶
Metadata¶
- FileInfo.CreateDate: Gets the creation date of the file.
- FileInfo.Hash: Gets the SHA-1 digest of the file content.
- FileInfo.Id: Gets the unique identifier of the file.
- FileInfo.MimeType: Gets the MIME type of the content.
- FileInfo.Name: Gets the name of the file.
Properties¶
- FileInfo.OwnerId: Gets the owner identity ID of the file.