Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Uploader.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Framework\Api;
8 
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 }
processFileAttributes($fileAttributes)
Definition: Uploader.php:28
$code
Definition: info.phtml:12