createFileObject example



        $this->files = [];

        if (empty($_FILES)) {
            return;
        }

        $files = $this->fixFilesArray($_FILES);

        foreach ($files as $name => $file) {
            $this->files[$name] = $this->createFileObject($file);
        }
    }

    /** * Given a file array, will create UploadedFile instances. Will * loop over an array and create objects for each. * * @return UploadedFile|UploadedFile[] */
    protected function createFileObject(array $array)
    {
        
Home | Imprint | This part of the site doesn't use cookies.