JAVA-034 / Beginner
Using the original uploaded filename (path manipulation)
Why is this a problem?
A name such as ../../webapps/ROOT/shell.jsp changes the storage location.
How to fix it
java
String name = UUID.randomUUID().toString(); // Server-generated filename
file.transferTo(baseDir.resolve(name).normalize());