var model = $parse(attr.crmAttachments);
scope.att = model(scope.$parent);
scope.ts = CRM.ts(null);
+ CRM.api4('Setting', 'get', {
+ select: ["maxFileSize"]
+ }).then(function(settings) {
+ scope.max_size = settings[0].value;
+ });
scope.inclUrl = '~/crmAttachment/attachments.html';
// delay rendering of child tree until after model has been populated
</div>
<div>
{{ts('Alternatively, you may add new files using drag/drop.')}}
+ <span ng-if="max_size">
+ {{ts('Each file must be less than %1M in size.', {1: max_size})}}
+ </span>
</div>
</div>