I would think that the MaxFileInputsCount would be the count of actual files allowed, but not always. As with the example below, adding a description field, the count is apparently twice the number of actual file inputs added.
So to allow 5 file inputs for example, you would need to set MaxFileInputsCount to 10 in this particular case.
I'm assuming this is from the addition of the description field, I haven't tested it with other scenarios using additional fields.
So to allow 5 file inputs for example, you would need to set MaxFileInputsCount to 10 in this particular case.
I'm assuming this is from the addition of the description field, I haven't tested it with other scenarios using additional fields.
function OnClientAddedHandler(sender, eventArgs) { var inputRow = eventArgs.get_row(); var uList = inputRow.parentNode; var count = 0; // add a new row for the description field newRow = document.createElement("li"); count++; uList.insertBefore(newRow, inputRow); var label = document.createElement("span"); label.innerHTML = "Description: "; label.style.fontSize = 12; label.id = label.name = sender.getID("DescLabel"); input = document.createElement("input"); input.type = "text"; input.id = input.name = sender.getID("DescValue"); newRow.appendChild(label); newRow.appendChild(input); }