angular-base64-upload
angular-base64-upload copied to clipboard
[Do not merge yet] Used validations on the model data. Request for comments
These changes have helped me! Some code has been added to make sure that the file objects are not returned when even one validation fails. This was something I was expecting to be there as a developer. So, I was working on a case where I have to prevent the user from uploading more than 4 documents, I was happy to find the maxnum attribute I though that It won't let the user select more than 4 docs, or at the very least will return with an empty model, that was not the case though. But after these changes, it works as expected, if the user selects any files that violate the validation conditions it will return with an [] in case of multiselect and with null in case of single file select.