/** * Prepares Fileupload form and returns it. * @return ilPropertyFormGUI */ public function getFileUploadForm() { /** * @var $lng ilLanguage */ global $lng; $form = new ilPropertyFormGUI(); $file_input = new ilFileInputGUI(); $file_input->setPostVar('file_to_upload'); $file_input->setTitle($lng->txt('upload')); $form->addItem($file_input); $form->addCommandButton('UploadFile-uploadFile', $lng->txt('submit')); $form->setTarget('_blank'); return $form; }