From a263b5bf3d0353951ed0b021811baaff6acc27cb Mon Sep 17 00:00:00 2001 From: gopi2401 Date: Sun, 14 Jan 2024 06:49:11 +0530 Subject: [PATCH] fix: fileName --- lib/Functions/insta_download.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Functions/insta_download.dart b/lib/Functions/insta_download.dart index 4d620e1..2d8f2bd 100644 --- a/lib/Functions/insta_download.dart +++ b/lib/Functions/insta_download.dart @@ -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 {