mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
53b02f6d99
commit
af0f93c109
@ -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()
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user