cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to use req.error to throw error if one of the attachment fails

rashmiangadi
Associate
Associate
0 Likes
248

I am from SDM CAP plugin team. user uploads attachments and click on save and all these attachments get saved to SDM repository. One flow here is suppose there are 5 attachments and out of these 5 if 1 attachment is virus prone and clicked on SAVE sdm throws error for virus attachment and other 4 are saved. We want to throw error on UI saying the particular attachment has failed but using req.reject or req.error is not helping because even 4 attachments are saved to SDM repo they are not saved to attachments database ending up with the whole request rejected in draft mode. 

Any solution for this.

Accepted Solutions (0)

Answers (0)