Open jinyulei0710 opened 2 years ago
center os 7
Files.probeContentType(path) return text/html
Files.probeContentType(path) return null
String filename = filePath.getName(); Path path = Paths.get(filename);
As the path is not the right path of the file,The result is always return null.
Jenkins and plugins versions report
Environment
```text Paste the output here ```What Operating System are you using (both controller, and any agents involved in the problem)?
center os 7
Reproduction steps
Expected Results
Files.probeContentType(path) return text/html
Actual Results
Files.probeContentType(path) return null
Anything else?
String filename = filePath.getName(); Path path = Paths.get(filename);
As the path is not the right path of the file,The result is always return null.