This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
i want to know how to get the path of an uploaded file.
I am uploading the file in a JSP Page (using HTML tags and i am not using multipart...) and the request.getParameter() for that file is in another JSP page. How do i get the path of the file uploaded. Please help me
You cannot upload a file without using a multipart request. And regardless, you cannot get the original path of the file except under IE which has a security bug that lets you see the path.
Is there no any alternative way to get the path??
Actually i want to get the path of an image file that is uploaded and want to copy that uploaded image file to a specific folder. so how should i do that when i can't get the full path of an uploaded file?
What path are you asking about? The original path on the client or the path of the file after upload on the server? You can't get the former, the latter is wherever your code writes the file.