/src/main/java/org/htmlunit/html/HtmlFileInput.java
if ( contentType_ == null ) { contentType = getPage ( ) .getWebClient ( ) .getBrowserVersion ( ) .getUploadMimeType ( file ) ; if ( StringUtils.isEmpty ( contentType ) ) { contentType = MimeType.APPLICATION_OCTET_STREAM; }
if (files_ == null || files_.length == 0) { return new NameValuePair[] {new KeyDataPair(getNameAttribute(), null, null, null, (Charset) null)}; } final List<NameValuePair> list = new ArrayList<>(); for (final File file : files_) { String contentType; <extra_id_0> } else { contentType = contentType_; } final Charset charset = getPage().getCharset(); final KeyDataPair keyDataPair = new KeyDataPair(getNameAttribute(), file, null, contentType, charset);