code: public boolean newUpload(String filePath) {
          WebLocator uploadButton = new WebLocator(this).setTag("span").setClasses("fileupload-new").setElPathSuffix("icon-folder-open", "count(.//i[@class='icon-folder-open']) > 0");
          return upload(uploadButton, filePath);
      }
docs: Upload file with AutoIT.
  Use only this: button.newUpload("C:\\text.txt");
  
  @param filePath "C:\\text.txt"
  @return true | false