-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Jenkins and plugins versions report
Environment
Paste the output here
What Operating System are you using (both controller, and any agents involved in the problem)?
center os 7
Reproduction steps
- add a file name a.html
- execute upload
- Files.probeContentType(path) return null
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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working