private function createFileObject($file, $arrayOffset = null)
    {
        if (!is_null($arrayOffset)) {
            $fileObject = new File($file['name'][$arrayOffset], $file['tmp_name'][$arrayOffset], $file['type'][$arrayOffset],
                $file['error'][$arrayOffset], $file['size'][$arrayOffset]);
            $this->fileObject[$file['name']][$arrayOffset] = $fileObject;
        } else {
            $fileObject = new File($file['name'], $file['tmp_name'], $file['type'], $file['error'], $file['size']);
            $this->fileObject[$file['name']] = $fileObject;
        }

        return $fileObject;
    }