Implementation of progress listener for upload and download operations.