/src/main/java/org/htmlunit/html/HtmlFileInput.java
if ( valueAttrib != null) {
if ( contentType_ == null ) {
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> contentType = getPage().getWebClient().getBrowserVersion().getUploadMimeType(file); if (StringUtils.isEmpty(contentType)) { contentType = MimeType.APPLICATION_OCTET_STREAM; } } else {