Discussion
Pegasystems Inc.
JP
Last activity: 25 Sep 2023 9:11 EDT
How to show a progress bar while files are being uploaded
Hi,
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.
Notes:
*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.
Thanks,