'gerd', 'password' => 'gerd123' ); $user->login($cred); $uid = $user->getId(); $formDef = array(); $formDef['file01'] = array( 'type' => 'Vfsfile', 'attributes' => array( 'user' => 0 ) ); $formDef['file02'] = array( 'type' => 'Vfsfile', 'attributes' => array( 'user' => 1, 'required' => 'no' ) ); $params = array(); $params['elements'] = $formDef; $form = WBClass::create('patForms', $params); $values = array(); $errors = array(); if (isset($_FILES) && !empty($_FILES)) { $form->setSubmitted(true); if (!$form->validateForm()) { $errors = $form->getValidationErrors(); } else { $values = $form->getValues(); } } ?>
' . var_export($_FILES, true) . "\n"; ?>