Docs about file upload needs to use Path instead of legacy File class

Because the current code doesn't compile.

Any ideas how to describe imports in these examples (Files needs to be imported from java.nio.file)?