Fetch
Fetch copied to clipboard
Is there any way to set MIME Type
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)
i changed Downloader.FileDownloaderType
to Downloader.FileDownloaderType.SEQUENTIAL
and it worked. Could you please provide a solution for PARALLEL
downloads