MINOR Removed <input name="MAX_FILE_SIZE"> from FileField and SimpleImageField, as it's a meaningless clientside setting thats not respected by any browser, nor part of any HTML spec (see http://bugs.php.net/bug.php?id=40387)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105913 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-30 22:36:24 +00:00
parent 53b02f6d99
commit af0f93c109
2 changed files with 0 additions and 17 deletions

View File

@ -91,15 +91,6 @@ class FileField extends FormField {
"id" => $this->id(), "id" => $this->id(),
"tabindex" => $this->getTabIndex() "tabindex" => $this->getTabIndex()
) )
) .
$this->createTag(
'input',
array(
"type" => "hidden",
"name" => "MAX_FILE_SIZE",
"value" => $this->getValidator()->getAllowedMaxFileSize(),
"tabindex" => $this->getTabIndex()
)
); );
} }

View File

@ -60,14 +60,6 @@ class SimpleImageField extends FileField {
'disabled' => $this->disabled 'disabled' => $this->disabled
) )
); );
$html .= $this->createTag("input",
array(
"type" => "hidden",
"name" => "MAX_FILE_SIZE",
"value" => $this->getValidator()->getAllowedMaxFileSize(),
"tabindex" => $this->getTabIndex()
)
);
$html .= "</div>"; $html .= "</div>";
return $html; return $html;