diff --git a/forms/FileField.php b/forms/FileField.php index 6b62a3cef..b9a32151c 100755 --- a/forms/FileField.php +++ b/forms/FileField.php @@ -91,15 +91,6 @@ class FileField extends FormField { "id" => $this->id(), "tabindex" => $this->getTabIndex() ) - ) . - $this->createTag( - 'input', - array( - "type" => "hidden", - "name" => "MAX_FILE_SIZE", - "value" => $this->getValidator()->getAllowedMaxFileSize(), - "tabindex" => $this->getTabIndex() - ) ); } diff --git a/forms/SimpleImageField.php b/forms/SimpleImageField.php index bdf631143..63405d153 100755 --- a/forms/SimpleImageField.php +++ b/forms/SimpleImageField.php @@ -60,14 +60,6 @@ class SimpleImageField extends FileField { 'disabled' => $this->disabled ) ); - $html .= $this->createTag("input", - array( - "type" => "hidden", - "name" => "MAX_FILE_SIZE", - "value" => $this->getValidator()->getAllowedMaxFileSize(), - "tabindex" => $this->getTabIndex() - ) - ); $html .= ""; return $html;