Navigator.MaxDocumentSize

Syntax

MaxDocumentSize: Number;

Description

The MaxDocumentSize property determines maximum size of loaded file.

Comments

File size is specified in bytes.

Use JSON or the setMaxDocumentSize method to set the property value and the getMaxDocumentSize method to get the property value.

Example

To execute the example, the HTML page must contain the Navigator component named nav (see Example of Creating the Navigator Component). Limit the maximum size of loaded file:

nav.setMaxDocumentSize(1024);

After executing the example on adding a file that is over 1024 bytes to the repository a warning appears.

See also:

Navigator