In Pega 8, there are two controls that you can use to attach multiple files to a case.
1. pzMultiDragDropControlStandard (Final)
2. pzMultiFilePath (Final)
Here is the out-of-the-box behavior of these two controls.
In this post, I've included a code snippet for both controls that enable to show a progress bar when files are being uploaded as below. Please see attached for how to build these controls.
*1. Since both of out-of-the-box controls are "Final", you will have to create new controls from scratch. Also you will have to do Save As a series of sections that reference the out-of-the-box controls accordingly.
*2. We've created this because some customers requested it, but it is not really recommended to customize such low level functionality. I would suggest to use the out-of-the-box ones as much as possible, because of two reasons:
If any issues occur, it may get hard to know if it is coming from customization or product.
When upgrade, product enhancement made to the controls will not be applied and you will miss the chance.
***Edited by Moderator: Pooja Gadige to add Developer Knowledge Share tag***
I just built both controls using the exact same code on the latest Pega Platform, version 8.8 with Theme Cosmos and verified everything worked fine just like 8.4.1, as shown below.
When you debug, the order is important - if things don't work on a different version, try the original one that is verfied first, in this case 8.4. If things still don't work, it is probably somewhere in your code, rather than the version difference. Also, I don't intend to maintain this code for the future version. If you find the code not working after version 8.8, please submit an enhancement request so hopefully this functionality gets incorporated into the product by default.