Better handling of max file upload size according to PHP settings
- Allow unlimited size - Better parsing of PHP size Fixes #4896
This commit is contained in:
committed by
Frédéric Guillot
parent
6e84f41517
commit
b138a99ce3
@@ -179,7 +179,7 @@ KB.component('file-upload', function (containerElement, options) {
|
||||
.text(' ' + files[index].name + ' ')
|
||||
.add(percentageElement);
|
||||
|
||||
if (files[index].size > options.maxSize) {
|
||||
if (options.maxSize > 0 && files[index].size > options.maxSize) {
|
||||
itemElement.add(KB.dom('div').addClass('file-error').text(options.labelOversize).build());
|
||||
isOversize = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user