[Refit] Is there any way to report the progress of an upload? #1487
-
I have a method to upload a file to the API:
I'd like to implement progress reporting, but I'm completely stuck. Once I call the method, I lost control over the stream that is being sent. Is there any way to indicate some kind of callback to let my application know the progress of the upload? |
Beta Was this translation helpful? Give feedback.
Answered by
anaisbetts
Mar 12, 2023
Replies: 0 comments 1 reply
-
I think the thing you'd have to do right now is to wrap the Stream in like a "ProgressNotifyingStream" that you make, to see what % of the stream has been read |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SuperJMN
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the thing you'd have to do right now is to wrap the Stream in like a "ProgressNotifyingStream" that you make, to see what % of the stream has been read