File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
app/code/Magento/Eav/Model/Attribute/Data
lib/internal/Magento/Framework/Data/Form/Element Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,7 @@ public function extractValue(RequestInterface $request)
120
120
}
121
121
122
122
/**
123
- * Validate file by attribute validate rules
124
- * Return array of errors
123
+ * Validate file by attribute validate rules and return array of errors
125
124
*
126
125
* @param array $value
127
126
* @return string[]
@@ -180,7 +179,8 @@ public function validateValue($value)
180
179
$ dir = $ this ->_directory ->getAbsolutePath ($ this ->getAttribute ()->getEntityType ()->getEntityTypeCode ());
181
180
$ fileData = [
182
181
'size ' => filesize ($ dir . $ value ),
183
- 'name ' => $ value
182
+ 'name ' => $ value ,
183
+ 'tmp_name ' => $ dir . $ value
184
184
];
185
185
}
186
186
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- /**
8
- * Form text element
9
- *
10
- * @author Magento Core Team <core@magentocommerce.com>
11
- */
12
7
namespace Magento \Framework \Data \Form \Element ;
13
8
14
9
use Magento \Framework \Escaper ;
15
10
11
+ /**
12
+ * Form text element
13
+ */
16
14
class Text extends AbstractElement
17
15
{
18
16
/**
You can’t perform that action at this time.
0 commit comments