can not get the file path of uploadedFile. my code is
String s=FilenameUtils.getFullPath(uploadedFile.getName());
output value of s=””
how can i get the full path of the specified file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If
uploadedFileis referring to a file uploaded from a web browser to your web server, then you will be unable to get its full path. If a browser transmitted the full path of uploaded files to a web server, that information could be used maliciously. You’ll have to make do with the file name.