Progress bar percentage and text update manually

Hi,

Because I’m using Uppy for upload file to CloudFlare stream, after upload success CloudFlare will return encoding progress. So I need to change the text Uploading... to Encoding... and set progress bar percentage manually, but my code is not updated percentage, progress bar always show 100%.

uppy.on('upload-success', (file, response) => {
    if(typeof response.uploadURL !== "undefined")
    {
      uppy.setFileState(file.id, {
          progress: {
              uploadComplete: false,
              uploadStarted: true,
              percentage: response.result.status.pctComplete
          }
      });
    }
});

Can anyone help?