From 32e096ae69dc7a03a5c8272380829cd66037c7c5 Mon Sep 17 00:00:00 2001 From: anmol chauhan Date: Mon, 20 Dec 2021 17:45:32 +0530 Subject: [PATCH] Issue was in uploading image zip file --- src/Repositories/ProductImageRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repositories/ProductImageRepository.php b/src/Repositories/ProductImageRepository.php index c290c74..3614913 100644 --- a/src/Repositories/ProductImageRepository.php +++ b/src/Repositories/ProductImageRepository.php @@ -80,7 +80,7 @@ public function bulkuploadImages($data, $product, $imageZipName) { if (isset($data['images'])) { foreach($data['images'] as $key => $value) { - if (is_null($imageZipName)) { + if ( ! is_null($imageZipName)) { $files = "imported-products/extracted-images/admin/".$data['dataFlowProfileRecordId'].'/'. $imageZipName['dirname'].'/'.basename($value); } else { $files = "imported-products/extracted-images/admin/".$data['dataFlowProfileRecordId'].'/'.basename($value);