Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Correctly calculate the max upload size in the DropZone uploader (see #…
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Mar 19, 2015
1 parent d52ad61 commit a6a7d56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions system/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion system/modules/core/classes/DropZone.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')))));
Expand Down

0 comments on commit a6a7d56

Please sign in to comment.