diff options
| author | mrgoldy <gijsmartens1@gmail.com> | 2019-08-25 21:24:22 +0200 |
|---|---|---|
| committer | mrgoldy <gijsmartens1@gmail.com> | 2019-08-25 21:24:22 +0200 |
| commit | 8bc056ebe6d5876c6de2a2ca84bf234678c3e702 (patch) | |
| tree | 2dcd7bd57b28c17866edfc0577dbe058240feb9c /phpBB/styles | |
| parent | 9c15594fe498a8a1640bb89aa0c93800918a9798 (diff) | |
| download | forums-8bc056ebe6d5876c6de2a2ca84bf234678c3e702.tar forums-8bc056ebe6d5876c6de2a2ca84bf234678c3e702.tar.gz forums-8bc056ebe6d5876c6de2a2ca84bf234678c3e702.tar.bz2 forums-8bc056ebe6d5876c6de2a2ca84bf234678c3e702.tar.xz forums-8bc056ebe6d5876c6de2a2ca84bf234678c3e702.zip | |
[ticket/16076] addFileFilter to check max file size per mime type
PHPBB3-16076
Diffstat (limited to 'phpBB/styles')
| -rw-r--r-- | phpBB/styles/prosilver/template/plupload.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/plupload.html b/phpBB/styles/prosilver/template/plupload.html index 1eb84372e8..a2ab19a51f 100644 --- a/phpBB/styles/prosilver/template/plupload.html +++ b/phpBB/styles/prosilver/template/plupload.html @@ -45,7 +45,14 @@ phpbb.plupload = { max_file_size: '{FILESIZE}b', chunk_size: '{CHUNK_SIZE}b', unique_names: true, - filters: [{FILTERS}], + filters: { + mime_types: [ + {FILTERS} + ], + mime_types_max_file_size: [ + {FILTERS} + ], + }, {S_RESIZE} headers: {'X-PHPBB-USING-PLUPLOAD': '1', 'X-Requested-With': 'XMLHttpRequest'}, file_data_name: 'fileupload', |
