How to disable "Add" button until all files are uploaded?

It is possible with some custom JS, take a look at this example:
https://codepen.io/optlsnd/pen/gxZxwz