Retrofit 2 — Upload Files with Progress

After publishing four tutorials specifically tailored to uploading files with Retrofit 2, we're still not done yet. In this tutorial we'll go a step further and show you how to show progress updates in the UI when the app is uploading files with Retrofit 2. This can be very useful when your users are uploading larger files or are on mobile networks. Your app will gain significantly in quality, if you inform the user about the ongoing upload and when it has successfully finished.

Uploading an Image with Progress

Don't forget to learn about other Retrofit tutorials:

Retrofit Series Overview

  1. Introduction to Call Adapters (Coming soon)
  2. Custom Call Adapter to Separate OnResponse Callback (Coming soon)
  3. How to Integrate RxJava 1.x Call Adapter (Coming soon)
  4. How to Integrate RxJava 2.x Call Adapter (Coming soon)
  5. How to Integrate Guava Call Adapter (Coming soon)
  6. Custom Call Adapter to Separate Network and Gson Errors (Coming soon)
  1. Callbacks (Coming soon)
  2. Annotations (Coming soon)
  3. Fluent Interface with Builders (Coming soon)


Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $12/mo

Explore the Library

Find interesting tutorials and solutions for your problems.

Miscellaneous