Question

Cognizant
CA
Last activity: 19 Feb 2020 10:12 EST
Drag and Drop upload - File restriction
Hi All,
pzDragDropMultiFileUpload activity is being called when drag and drop file upload is performed. As this is the Final activity, we are unable to do any file type (pdf,docx,etc) validation. The post activity - pzSaveAttachments is also final. So we have used CallVirusCheck activity to do the file type validation. We are able to set the error in case of invalid file types. Now the user removes the invalid file and again drag & drop correct file in the same screen. But the error set on dragDropFileUpload (Which is set due to previous invalid file) is not cleared. Hence pzSaveAttachments activity fails due to step-2 pre-condition. (@(Pega-RULES:Page).PageExistsWithClass(dragDropFileUpload, tools) && @hasMessages(dragDropFileUpload))
We are unable to clear the error as the activity is final rule. Kindly provide your suggestions..