How do i return both, progress and server response in Flowable.create??
Ayush Singh

There is a way I proposed in the article. It’s not the cleanest approach but it’ll work:

If you need the data from the response you can make uploadImage method return Flowable<SomeResponseClass> instead of Double and store both progress and server’s response in the object. And if the response is not available yet, the server’s response field will be null.