Getting local Path

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swethak
    New Member
    • May 2008
    • 118

    Getting local Path

    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.

    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>
  • rnd me
    Recognized Expert Contributor
    • Jun 2007
    • 427

    #2
    use a browser other than firefox3, which only reports the file's name.

    why do you need to know a user's folder info?

    Comment

    Working...