fix(dom) uploadFiles: checkArgs