diff --git a/forms/UploadField.php b/forms/UploadField.php index 847ecd25c..164a24ac1 100644 --- a/forms/UploadField.php +++ b/forms/UploadField.php @@ -220,11 +220,6 @@ class UploadField extends FileField { $this->getValidator()->setAllowedExtensions( array_filter(Config::inst()->get('File', 'allowed_extensions')) ); - - // get the lower max size - $maxUpload = File::ini2bytes(ini_get('upload_max_filesize')); - $maxPost = File::ini2bytes(ini_get('post_max_size')); - $this->getValidator()->setAllowedMaxFileSize(min($maxUpload, $maxPost)); } /**