Luma

Total posts: 1

  1. Direct use of $_FILES Superglobal detected. In magento 2

     protected function getTmpFileName()
    {
        $tmpName = null;
        if (isset($_FILES['groups'])) {
            $tmpName = $_FILES['groups']['tmp_name'][$this->getGroupId()]['fields'][$this->getField()]['value'];
        } else {
            $tmpName = is_array($this->getValue()) ? $this->getValue()['tmp_name'] : null;
        }
        return $tmpName;
    }

1 Item

Show per page
Search engine powered by ElasticSuite Magento eCommerce Design Created by Harris Web Works