there is ````FileList.addFile()```` for example have a look at apps/files/js/files.js L566