Link constraints
Sets constraints on the values that can be entered in a link
field
. Since link fields are used to hold
references to binary data, the constraints actually apply to the
referenced binary data rather than the reference itself.
Syntax
<constraints> <required>...</required>? <mime-type>...</mime-type>* <allow-content-types>...</allow-content-types>* </constraints>
Examples
This example shows typical constraints for a link field that is to be used for image objects.
<constraints> <mime-type>image/jpeg</mime-type> <mime-type>image/png</mime-type> </constraints>