contentFieldLimitError
contentFieldLimitError(
path,value):string|null
Returns a validation error message if the given string exceeds
MAX_CONTENT_FIELD_BYTES when UTF-8 encoded, or null if it is within the limit.
Parameters
Section titled “Parameters”string
The field path, used to identify the offending field in the message.
string
The candidate field value to measure.
Returns
Section titled “Returns”string | null
Hit a problem or have a question? Get in touch.