Hi... I assume you are using FileNet as a repository.
In that case, you can create a CodeModule with a Java class to do the validation and if the document size exceeds the limit, throw an exception. Then create an Event Action with that Java class and a Subscription to your document class that triggers validation on the Create and Checkin events.
With this approach, you have your validation regardless of the method used to upload the document to the repository.
I hope this helps.
------------------------------
Saludos/Regards.
Sergio Salinas
DBA ECM Consultant, IBM Expert Labs.
------------------------------
Original Message:
Sent: Thu October 27, 2022 08:23 AM
From: Mark Jordan
Subject: Limit file size and restrict file types in ICN attachment widget
Hello -
You can investigate using this ICN plugin: https://github.com/ibm-ecm/ibm-content-navigator-samples/tree/master/DocumentUploadFilterPlugin
You can use it to restrict specified mime types from being ingested via ICN. There are currently no available methods to restrict fie size but you can work to use the DocumentUploadFilterPlugin code to possibly add in file size restrictions.
-Mark
------------------------------
Mark Jordan
Original Message:
Sent: Fri October 21, 2022 01:33 AM
From: Nagajyothi Kommareddy
Subject: Limit file size and restrict file types in ICN attachment widget
Team,
Please suggest me the best way to restrict few filetypes and limit the size of files while adding a document from the case information or work details page, by showing a proper error message to the user.
We are using ICN 3.0.5.
Thanks in advance.
------------------------------
Nagajyothi Kommareddy
------------------------------