/** * This method gets called EVERY time the object is * created. It is used to build all of the * FormElement objects used in this Form. * */ function form_init_elements() { $uploadedfile = new FEFile($this->getUploadFileLabel(), true, "400px"); $uploadedfile->set_max_size(10240000000.0); $uploadedfile->set_temp_dir(ini_get('upload_tmp_dir')); $this->add_element($uploadedfile); }