/** * Returns a form that will be used for uploading files */ public function uploadForm() { return $this->view->form(array('action' => 'upload', 'id' => null), false, 'post', array('style' => 'display: none;', 'id' => 'uploadForm', 'target' => 'uploadIframe', 'enctype' => 'multipart/form-data')) . $this->view->form(null, true); }