title: Show progress of file uploads/downloads using the AWS Amplify Storage SDK
body: <p>I am uploading/downloading files using the <code>Storage</code> API of the AWS Amplify SDK library for Android.</p>
  
  <p>I need to show progress as the operation is going on.
  Is there any way in the Amplify Storage API to hook a listener or callback such I can listen for upload/download progress, in order to update a progress bar in the UI?</p>
  
  <p>The official documentation does not mention anything for it:
  <a href="https://aws-amplify.github.io/docs/android/storage" rel="nofollow noreferrer">https://aws-amplify.github.io/docs/android/storage</a></p>
  
  <p>If not, I think there are two alternatives:</p>
  
  <ul>
  <li><code>TransferUtility</code> / <code>TransferObserver</code> - It has API to observe progress, but I can't get it to work with Cognito User pools. I don't know if the API allows that.</li>
  <li>Generate a <code>presigned url</code> in the server, and then use <code>HttpUrlConnection</code> or <code>OkHttp</code> - this would give me access to the underlying <code>InputStream</code> and I could report progress as it's been read, but I find this very low level and I was hoping to be able to delegate into any of the AWS SDKs.</li>
  </ul>
  
  <p>Thank you.</p>