Reputation: 2638
I'm generating PDF files on the server. I want to implement a progress bar on the client side, so a user will have some idea how long that operation will take. Making a progress bar for files that are being uploaded is pretty straight forward, but I have no idea how long it takes to generate the PDF on the backend.
Do you have any idea?
Upvotes: 0
Views: 477
Reputation: 333
When making a request for the file, you could return a token from the app and from your frontend periodically query for whether a job with a given token is done/how far along it is.
Upvotes: 1