I upload the file to the destination, providing the path to the file. It works great when the file path is similar to
String filePath = "D:\\location";
But when providing the server location, for example
String filePath = request.getRealPath("\\10.0.1.18\downloads\upload");
throws an invalid escape sequence error.
What is wrong on the way (I have full privileges for the location), and if they are wrong, then how to implement them correctly.
Thanks for the help in advance ////
java filepath
Newbee
source share