refactor(dom) uploadFiles: call func with name only ones