aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-09-22 13:02:19 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-09-22 13:02:19 +0200
commita4edb41e3f65cb5907be6513ee5066bc3c7b5413 (patch)
tree1b534cb9f106d59ad13e55f2289e6ca4e6823b1e /phpBB/styles
parentMerge pull request #5673 from AlfredoRamos/ticket/15643 (diff)
parent[ticket/16076] camelCase and callback (diff)
downloadphpbb-a4edb41e3f65cb5907be6513ee5066bc3c7b5413.tar.gz
phpbb-a4edb41e3f65cb5907be6513ee5066bc3c7b5413.tar.bz2
phpbb-a4edb41e3f65cb5907be6513ee5066bc3c7b5413.zip
Merge pull request #5664 from mrgoldy/ticket/16076
[ticket/16076] addFileFilter to check max file size per mime type
Diffstat (limited to 'phpBB/styles')
-rw-r--r--phpBB/styles/prosilver/template/plupload.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/plupload.html b/phpBB/styles/prosilver/template/plupload.html
index 593070321d..9425b7d769 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',