We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fe0f622 + 4ba0051 commit 4f43134Copy full SHA for 4f43134
app/code/Magento/ImportExport/Controller/Adminhtml/Import/Download.php
@@ -106,19 +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
- ->setHeader('Content-Disposition', 'attachment; filename=' . $fileName);
120
121
- return $resultRaw;
122
}
123
124
/**
0 commit comments