Skip to content

Commit a86e0f1

Browse files
committed
fix: need to decode the utf8 encoded paths when reading files
1 parent 5d10fd5 commit a86e0f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Uploads/ImportUploadsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected function perform(InputInterface $input, OutputInterface $output)
126126
})->chunk($size)->mapWithKeys(function (Enumerable $chunkedFiles) use ($environment) {
127127
return $this->getSignedUploadRequest($environment, $chunkedFiles);
128128
})->map(function (array $request, string $filePath) use ($filesystem, $progressBar, &$total) {
129-
$request['body'] = $filesystem->readStream($filePath);
129+
$request['body'] = $filesystem->readStream(utf8_decode($filePath));
130130

131131
++$total;
132132

0 commit comments

Comments
 (0)