I think you need to implement a progress bar in javascript on the client side.
In any case, this link gives an explanation of how to do this using jQuery.
The server can get the size of a multi-page file loaded from the header of the HTTP request; see @ilya's answer. However, getting this information and counting the bytes read so far in the stream of HTTP responses that display or update the progress bar will be quite difficult ...
source share