We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79ebeb7 + c0d47f1 commit 3be3fb2Copy full SHA for 3be3fb2
app/code/Magento/ImportExport/Controller/Adminhtml/Import/Download.php
@@ -106,18 +106,13 @@ public function execute()
106
$fileSize = $this->sampleFileProvider->getSize($entityName);
107
$fileName = $entityName . '.csv';
108
109
- $this->fileFactory->create(
+ return $this->fileFactory->create(
110
$fileName,
111
- null,
+ $fileContents,
112
DirectoryList::VAR_IMPORT_EXPORT,
113
'application/octet-stream',
114
$fileSize
115
);
116
-
117
- $resultRaw = $this->resultRawFactory->create();
118
- $resultRaw->setContents($fileContents);
119
120
- return $resultRaw;
121
}
122
123
/**
0 commit comments