Skip to content

Commit 1ff5827

Browse files
committed
AC-8841:: Data transfer -> Import Settings -> The link to download sample file is not working properly
1 parent 8fab341 commit 1ff5827

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/ImportExport/Controller/Adminhtml/Import

1 file changed

+2
-1
lines changed

app/code/Magento/ImportExport/Controller/Adminhtml/Import/Download.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ public function execute()
115115
);
116116

117117
$resultRaw = $this->resultRawFactory->create();
118-
$resultRaw->setContents($fileContents);
118+
$resultRaw->setContents($fileContents)
119+
->setHeader('Content-Disposition', 'attachment; filename=' . $fileName);
119120

120121
return $resultRaw;
121122
}

0 commit comments

Comments
 (0)