This commit is contained in:
zmagod 2016-12-12 16:21:38 +01:00
parent 9f1e436623
commit b56913cc87

View file

@ -161,10 +161,14 @@ function filesSizeValidator(ev, fileInputs, fileTypeEnum) {
// Check if any file exceeds allowed size limit
var filesSizeValid = true;
// Check total size of uploaded files
var totalSizeOK = checkFilesTotalSize(fileInputs);
_.each(fileInputs, function(fileInput) {
var file = fileInput.files[0];
var assetError = getFileTooBigError(file);
var assetError = checkFilesTotalSize(fileInputs);
var assetError = totalSizeOK;
if (assetError) {
renderFormError(ev, fileInput, assetError, false, "data-error='file-size'");
filesSizeValid = false;