Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Api
Uploader.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Api
;
8
12
class
Uploader
extends
\Magento\Framework\File\Uploader
13
{
17
public
function
__construct
()
18
{
19
}
20
28
public
function
processFileAttributes
($fileAttributes)
29
{
30
$this->_file = $fileAttributes;
31
if
(!file_exists($this->_file[
'tmp_name'
])) {
32
$code
= empty($this->_file[
'tmp_name'
]) ?
self::TMP_NAME_EMPTY
: 0;
33
throw
new \Exception(
'File was not processed correctly.'
,
$code
);
34
}
else
{
35
$this->_fileExists =
true
;
36
}
37
}
38
}
Magento\Framework\File\Uploader\TMP_NAME_EMPTY
const TMP_NAME_EMPTY
Definition:
Uploader.php:137
Magento\Framework\Api
Definition:
AbstractExtensibleObject.php:6
Magento\Framework\Api\Uploader
Definition:
Uploader.php:12
Magento\Framework\File\Uploader
Definition:
Uploader.php:17
Magento\Framework\Api\Uploader\processFileAttributes
processFileAttributes($fileAttributes)
Definition:
Uploader.php:28
Magento\Framework\Api\Uploader\__construct
__construct()
Definition:
Uploader.php:17
$code
$code
Definition:
info.phtml:12