Availability: >= 3.0
Type: Object Property
Description: Maximum file size of documents such as PDF and Word files allowed for upload.
$editor->maxDocSize = in $size;
The value should either be an integer specified in bytes or a string consisting of a numeric value followed by an optional space and unit modifier. Set to 0 for unlimited data.
Setting the max size to 2 MB:
$editor->maxDocSize = '2 MB';
Setting the max size to 500 KB:
$editor->maxDocSize = '500 KB';