Skip to content

Commit b4cef0f

Browse files
committed
MC-13954: Update Product Import Temp Directory
1 parent 27b0912 commit b4cef0f

File tree

1 file changed

+2
-3
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+2
-3
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Uploader.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ public function move($fileName, $renameFileOff = false)
198198
* @param string $url
199199
* @param string $driver
200200
* @return string
201-
* @throws \Magento\Framework\Exception\FileSystemException
202201
* @throws \Magento\Framework\Exception\LocalizedException
203202
*/
204203
private function downloadFileFromUrl($url, $driver)
@@ -270,7 +269,7 @@ protected function _readFileInfo($filePath)
270269
* Validate uploaded file by type and etc.
271270
*
272271
* @return void
273-
* @throws \Exception
272+
* @throws \Magento\Framework\Exception\LocalizedException
274273
*/
275274
protected function _validateFile()
276275
{
@@ -283,7 +282,7 @@ protected function _validateFile()
283282

284283
$fileExtension = pathinfo($filePath, PATHINFO_EXTENSION);
285284
if (!$this->checkAllowedExtension($fileExtension)) {
286-
throw new \Magento\Framework\Exception\LocalizedException('Disallowed file type.');
285+
throw new \Magento\Framework\Exception\LocalizedException(__('Disallowed file type.'));
287286
}
288287
//run validate callbacks
289288
foreach ($this->_validateCallbacks as $params) {

0 commit comments

Comments
 (0)