title: How to Download .zip file from server using Retrofit2?
body: <p>The response of GET request returns the filename in conntent-disposition header and I want to download that file using DownloadManager but it doesn't work. And the file name is &quot;example.zip&quot;</p>
  <pre><code> val fileName =responseBody.headers().get(&quot;content-disposition&quot;)?.replace(&quot;attachment; filename=&quot;,&quot;&quot;)
   val downloadManager = getSystemService(Context.DOWNLOAD_SERVICE) as DownloadManager
   val request = DownloadManager.Request(Uri.parse(fileName))
   downloadManager.enqueue(request)
  </code></pre>