File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
app/code/Magento/Customer/Model/Metadata/Form Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 23
23
*/
24
24
class File extends AbstractData
25
25
{
26
+ public const UPLOADED_FILE_SUFFIX = '_uploaded ' ;
27
+
26
28
/**
27
29
* Validator for check not protected extensions
28
30
*
@@ -59,7 +61,8 @@ class File extends AbstractData
59
61
60
62
/**
61
63
* @var FileProcessorFactory
62
- * @deprecated 101.0.0
64
+ * @deprecated 101.0.0 Call fileProcessor directly from code
65
+ * @see $this->fileProcessor
63
66
*/
64
67
protected $ fileProcessorFactory ;
65
68
@@ -126,7 +129,7 @@ public function extractValue(\Magento\Framework\App\RequestInterface $request)
126
129
$ attrCode = $ this ->getAttribute ()->getAttributeCode ();
127
130
128
131
// phpcs:disable Magento2.Security.Superglobal
129
- $ uploadedFile = $ request ->getParam ($ attrCode . ' _uploaded ' );
132
+ $ uploadedFile = $ request ->getParam ($ attrCode . static :: UPLOADED_FILE_SUFFIX );
130
133
if ($ uploadedFile ) {
131
134
$ value = $ uploadedFile ;
132
135
} elseif ($ this ->_requestScope || !isset ($ _FILES [$ attrCode ])) {
@@ -424,7 +427,8 @@ public function outputValue($format = \Magento\Customer\Model\Metadata\ElementFa
424
427
* Get file processor
425
428
*
426
429
* @return FileProcessor
427
- * @deprecated 100.1.3
430
+ * @deprecated 100.1.3 we don’t use such approach anymore. Call fileProcessor directly
431
+ * @see $this->fileProcessor
428
432
*/
429
433
protected function getFileProcessor ()
430
434
{
You can’t perform that action at this time.
0 commit comments