I am having the Servlet web application which have upload functionality.
I am checking one condition that file name should contain .csv. If it having .csv the process continues otherwise I am displaying error screen.
But, the issue is it is working fine in my system(Local) but in test environment I am getting the error screen. So I want to see the actual path where the file is uploaded.
So please suggest me how to get the path where file is uploaded. I can print it in log and I will able to find the solution for the above issue.
In Short, How to get the file path when the file is uploaded?(Servlet/Java).
Ex: c:/Project/Upload/... etc