Skip to content

DocumentFiles

Represents the files of a Document.

Remarks

In addition to the Files methods, which add files to the document, the collection can be read like an array: length returns the number of files, and files[index] or files[fileId] returns a FileInfo.

Examples

List the files of a document

1
2
3
4
5
var doc = $Documents.Get($Xml.Evaluate('DocumentId'));

for (var i = 0; i < doc.Files.length; i++) {
    console.log(doc.Files[i].Name + ' (' + doc.Files[i].MimeType + ')');
}

Capabilities

Properties

Content Operations

Methods

File Operations

Directory Operations

Metadata

Archive Operations

  • DocumentFiles.UnZip: Extracts the files inside an archive file into the database and returns an array containing file information.
  • DocumentFiles.Zip: Creates a Zip archive of the specified files.