--- attachments.js.orig 2018-01-25 09:41:48.286070329 -0500 +++ attachments.js 2018-01-25 09:41:48.286070329 -0500 @@ -3,7 +3,7 @@ function addFile(inputEl, file, eagerUpload) { - if ($('#attachments_fields').children().length < 10) { + if ($('#attachments_fields').children().length < 100) { var attachmentId = addFile.nextAttachmentId++; @@ -149,7 +149,12 @@ if (sizeExceeded) { window.alert(maxFileSizeExceeded); } else { - $.each(files, function() {addFile(inputEl, this, true);}); + $.each(files, function() { + var ret = addFile(inputEl, this, true); + if (ret == null) { + window.alert("Reached max number (100) of simulatenous uploaded files"); return false; + } + }); } }