customize error message returned from content manager file upload
In WCP we have content manager taskflow in the page.
we also apply a rule to restrict user only allow certain file format can be uploaded.
When user try to upload not-allowed file, we have the following error message displayed in Portal UI:
Errors occurred while attempting to upload the document.
Error Error executing WebCenter Content service 'CHECKIN_NEW': The content item was not successfully checked in. csDpSideEffects(FileUploadTypes) Error evaluating server script expression. Only Word, Excel, PowerPoint, PDF, CSV and TXT documents are allowed to upload to Documents Repository. (status code: -1, message key: !csUnableToCheckInContentItem!csDpSideEffects,FileUploadTypes!csDynHTMLServerScriptEvalError!$ Only Word, Excel, PowerPoint, PDF, CSV and TXT documents are allowed to upload to Documents Repository.)