diff --git a/system/docs/CHANGELOG.md b/system/docs/CHANGELOG.md index be73edad4a..42791c4d24 100644 --- a/system/docs/CHANGELOG.md +++ b/system/docs/CHANGELOG.md @@ -4,6 +4,9 @@ Contao Open Source CMS changelog Version 3.4.5 (2015-03-XX) -------------------------- +### Fixed +Correctly calculate the max upload size in the DropZone uploader (see #7633). + ### Fixed Ensure a unique language file array in the `Automator` class (see #7687). diff --git a/system/modules/core/classes/DropZone.php b/system/modules/core/classes/DropZone.php index 553974c258..02511d8f05 100644 --- a/system/modules/core/classes/DropZone.php +++ b/system/modules/core/classes/DropZone.php @@ -26,7 +26,7 @@ class DropZone extends \FileUpload public function generateMarkup() { // Maximum file size in MB - $intMaxSize = ($this->getMaximumUploadSize() / 1024000); + $intMaxSize = ($this->getMaximumUploadSize() / 1024 / 1024); // String of accepted file extensions $strAccepted = implode(',', array_map(function($a) { return '.' . $a; }, trimsplit(',', strtolower(\Config::get('uploadTypes')))));