Feature #18556 » attachments_3.3.1_increase_number_upload_files.diff
| attachments.js 2018-01-25 09:41:48.286070329 -0500 | ||
|---|---|---|
|
function addFile(inputEl, file, eagerUpload) {
|
||
|
if ($('#attachments_fields').children().length < 10) {
|
||
|
if ($('#attachments_fields').children().length < 100) {
|
||
|
var attachmentId = addFile.nextAttachmentId++;
|
||
| ... | ... | |
|
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;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|
||