It seems that Files.probeContentType()
returns null
for a file (where the MIME type is not indicated by its file name) on OpenJDK 11, while it was working on OpenJDK 8 (on Linux x64). What is the reason for that?
Note: It may work for files where the type is indicated by its name, e.g., "test.pdf" will produce "application/pdf", but renaming the file to "test" will produce null
.