Hi,
I used the below code to upload an image.In that i uploaded a image from "C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/test/Blue.jpg". But in that i print the the uploaded file name .It returns as Blue.jpg. How can i get the full path of the uploaded file . Please suggest to my Problem.
I used the below code to upload an image.In that i uploaded a image from "C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/test/Blue.jpg". But in that i print the the uploaded file name .It returns as Blue.jpg. How can i get the full path of the uploaded file . Please suggest to my Problem.
Code:
<script> var value1=document.form.file.value; document.write(value1); </script> <body> <form name="form" method="post" onSubmit="displyfile()"> <input type="file" name ="file"> <input type="submit" name="submit" value="submit"> </form> </body>
Comment