Skip to content

Commit

Permalink
fix: fileName
Browse files Browse the repository at this point in the history
  • Loading branch information
gopi2401 committed Jan 14, 2024
1 parent b663989 commit a263b5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Functions/insta_download.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ class InstaDownloadController extends GetxController {
for (var file in data['video']) {
downloadController.downloadFile(
file['video'],
"ReelVideo-${Random().nextInt(900000) + 100000}",
"ReelVideo-${Random().nextInt(900000) + 100000}.mp4",
file['thumbnail']);
}
}
if (data['image'] != null && data['image'].isNotEmpty) {
for (var url in data['image']) {
downloadController.downloadFile(url,
"ReelImage-${Random().nextInt(900000) + 100000}", url);
"ReelImage-${Random().nextInt(900000) + 100000}.jpg", url);
}
}
} else {
Expand Down

0 comments on commit a263b5b

Please sign in to comment.