1

I am uploading some file to using web API and I am using Flurl for that but I am not getting any way to get upload percentage or any information that can help me to get upload file percentage.

MoonTech
  • 11
  • 6

1 Answers1

1

Flurl doesn't provide direct support for this, but with knowledge of how to do it with HttpClient, you should be able to adapt it to Flurl. The basic steps would be:

  1. Create a class that inherits from HttpContent and contains the bits necessary to track progress. One example is described in detail here.

  2. Use Flurl's PostAsync method (which takes an HttpContent object) to send it.

Todd Menier
  • 37,557
  • 17
  • 150
  • 173