URL withFileToUpload - multiple files per parameter


Is there a reason why the URL function withFileToUpload doesn’t allow multiple files for the same parameter? It’s allowed via [] suffixes.
I changed my code locally inside the URL::withUpload to this:
for (int i = u.filesToUpload.size(); --i >= 0;) {
if (!f->parameterName.endsWith("[]") && u.filesToUpload.getObjectPointerUnchecked(i)->parameterName == f->parameterName) {
u.filesToUpload.remove (i);

and it seems to work fine, allowing upload of file arrays.