Skip to content

Commit f47d2c8

Browse files
committed
B2B-2048: [AWS S3] ImportExport can't unzip file from AWS S3
1 parent 00090ea commit f47d2c8

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/RemoteStorage/Plugin

1 file changed

+1
-1
lines changed

app/code/Magento/RemoteStorage/Plugin/Zip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private function copyFileToTmp(string $filePath): string
140140
// phpcs:ignore Magento2.Functions.DiscouragedFunction
141141
$tmpPath = $this->getTmpPath($filePath);
142142
$content = $this->remoteDirectoryWrite->getDriver()->fileGetContents($filePath);
143-
$filePath = $this->tmpDirectoryWrite->getDriver()->filePutContents($tmpPath, $content)
143+
$filePath = $this->tmpDirectoryWrite->getDriver()->filePutContents($tmpPath, $content) >= 0
144144
? $tmpPath
145145
: $filePath;
146146
}

0 commit comments

Comments
 (0)