How to add custom rule for only pdf(s) that are uploaded shouldn't have special chars, space or caps and max size limited to 5mb?
I've tried by going to /apps/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload/js/fileupload.js but the issue is it gets applied to all assets in general. But I want to add separate rules for PDF, and separate one for images.
Tried in the following manner:
