From af0f93c109daa70c7f8c3c69a8a1c4aaea1090fa Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 30 May 2010 22:36:24 +0000 Subject: [PATCH] MINOR Removed 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 --- forms/FileField.php | 9 --------- forms/SimpleImageField.php | 8 -------- 2 files changed, 17 deletions(-) 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;