Hi, We have a requirement where we need to allow only certain specific MIME types documents to be added when adding a document using default "Add Document" button in ICN desktop. We tried customization AddContentItemDialog -> onAdd() method. This approach works fine when I am calling the entry template using any custom action. Is it possible to extend and customize this ecm AddContentItemDialog when entry templates are opened using the default "Add Document" option. Also, any other suggestion on how to achieve this will be of great help !
Answer by Jon Elslip (331) | Mar 26, 2018 at 06:56 PM
If you want to limit the types of files the user can select, you can set the "accept" parameter of the file input control. Try overriding the postCreate function in ecm.widget.AddContentItemGeneralPane and add this to restrict to .png files:
this._fileInput.accept = ".png";
How to disable print option for specific user groups in Daeja using custom action? Is this possible? 11 Answers
Model API for content search (keyword search) in IBM content Navigator 1 Answer
Is it possible to deploy or preconfigure the server URL for Navigator users? 2 Answers
Login Audit for ICN . 1 Answer
Use itemPropertiesDisplayPane in Feature 2 Answers