fixFilesArray example


        if (is_array($this->files)) {
            return;
        }

        $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[] */
Home | Imprint | This part of the site doesn't use cookies.