Skip to content

Commit

Permalink
MAGETWO-85539: fix adminhtml file attribute edit form #11267
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Korshenko authored Dec 13, 2017
2 parents a41dbed + dc85c24 commit 6692b5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/Customer/Model/FileUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function upload()
$result = $fileProcessor->saveTemporaryFile($this->scope . '[' . $this->getAttributeCode() . ']');

// Update tmp_name param. Required for attribute validation!
$result['tmp_name'] = $result['path'] . '/' . ltrim($result['file'], '/');
$result['tmp_name'] = ltrim($result['file'], '/');

$result['url'] = $fileProcessor->getViewUrl(
FileProcessor::TMP_DIR . '/' . ltrim($result['name'], '/'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function testUpload()
'name' => $resultFileName,
'file' => $resultFileName,
'path' => $resultFilePath,
'tmp_name' => $resultFilePath . $resultFileName,
'tmp_name' => ltrim($resultFileName, '/'),
'url' => $resultFileUrl,
];

Expand Down

0 comments on commit 6692b5f

Please sign in to comment.