fluttercommunity / fluttercommunity/flutter_downloader

Downloader not working for dynamic zip / generated zip download [file getting download at specified path but it is corrupted. ]. Direct zip link it is

Open
#439 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
940
Forks
561
Avg merge
1h 18m
Merged PRs (30d)
1

Description

I am using `flutter_downloader` in conjuction with `flutter_inappwebview`

``` onDownloadStart: (controller, url) async {
filePath =
(await getExternalStorageDirectory()).path;
print("onDownloadStart $url and path $filePath");

final taskId = await FlutterDownloader.enqueue(
fileName: "offlineaadhaar.zip",
// headers: {"Content-Type":"application/octet-stream"},
url: url.toString(),
savedDir: filePath,
showNotification: true,
// show download progress in status bar (for Android)
openFileFromNotification:
true, // click on notification to open downloaded file (for Android)
);
print("on Download Task Id: $taskId")
},
```
file getting download at specified path but it is corrupted.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.