Fetch icon indicating copy to clipboard operation
Fetch copied to clipboard

Is there any way to set MIME Type

Open zubairehman opened this issue 3 years ago • 1 comments

Hi,

Thanks for such a great library. I am trying to download an APK via Fetch but after download, I'm unable to parse/install it using the package manager. Seems like the file is corrupted. Is there any way I can set the MIME Type or parse the APK after download?

Note: The same APK works fine if I use the native download manager.

This is how I'm setting mime type for now:

private const val MIME_TYPE = "application/vnd.android.package-archive"        
request.addHeader("Content-Type", MIME_TYPE)

zubairehman avatar Mar 17 '21 05:03 zubairehman

i changed Downloader.FileDownloaderType to Downloader.FileDownloaderType.SEQUENTIAL and it worked. Could you please provide a solution for PARALLEL downloads

zubairehman avatar Mar 17 '21 09:03 zubairehman