diff --git a/packages/actions/src/Concerns/CanImportRecords.php b/packages/actions/src/Concerns/CanImportRecords.php index 4d6492eb44b..d98af879cce 100644 --- a/packages/actions/src/Concerns/CanImportRecords.php +++ b/packages/actions/src/Concerns/CanImportRecords.php @@ -397,7 +397,8 @@ public function getUploadedFileStream(TemporaryUploadedFile $file) $s3Adapter = Storage::disk($fileDisk)->getAdapter(); invade($s3Adapter)->client->registerStreamWrapper(); /** @phpstan-ignore-line */ - $fileS3Path = 's3://' . config("filesystems.disks.{$fileDisk}.bucket") . '/' . $filePath; + + $fileS3Path = (string) str('s3://' . config("filesystems.disks.{$fileDisk}.bucket") . '/' . $filePath)->replace('\\', '/'); $resource = fopen($fileS3Path, mode: 'r', context: stream_context_create([ 's3' => [