From ab7c1394e8087a311e57e3b5be99b2805535062d Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 12 Dec 2005 03:58:51 +0000 Subject: Added TFileUpload control. --- framework/Web/UI/TForm.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework/Web/UI/TForm.php') diff --git a/framework/Web/UI/TForm.php b/framework/Web/UI/TForm.php index 72eb2e10..dc19fc6d 100644 --- a/framework/Web/UI/TForm.php +++ b/framework/Web/UI/TForm.php @@ -14,6 +14,8 @@ class TForm extends TControl // $writer->addAttribute('name',$this->getName()); $writer->addAttribute('method',$this->getMethod()); $writer->addAttribute('action',$this->getApplication()->getRequest()->getRequestURI()); + if(($enctype=$this->getEnctype())!=='') + $writer->addAttribute('enctype',$enctype); $attributes->remove('name'); $attributes->remove('method'); $attributes->remove('action'); -- cgit v1.2.3