Availability: >= 3.0
Type: Object Property
Description: Maximum file size of media files such as QuickTime and Flash allowed for upload.
$editor->maxMediaSize = 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->maxMediaSize = '2 MB';
Setting the max size to 500 KB:
$editor->maxMediaSize = '500 KB';