input type="file" value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sakurasyi
    New Member
    • May 2006
    • 31

    input type="file" value

    hai everyone...

    can i need your help?
    recently i'm doing a program for upload image or file..
    i've attmpted to post the location or path to the page then input it into the form using <input type = "file" value = ${paths} name = "image">, but its not working..

    1. is there a way to upload file without using the browse button?
    2. is there a way to upload file using <input type = "file" value = ${paths} name = "image">?

    thank you.
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Are you sure this is a Java question and not a HTML/PHP question?
    but its not working..
    Please describe the manor in which it is not working, what do you see that is wrong? What happens what is wrong? Do you get any error meaages?

    Comment

    • sakurasyi
      New Member
      • May 2006
      • 31

      #3
      Actually, it is HTML question, but also relate with java.
      I set the value of file input without using browse button.
      <input type = "file" value = ${paths} name = "image">
      But the value not appear at the browser and not carry the value..
      any solution?

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        Posting 1 line of your non-working file is not helpful in locating the error

        I do not see how

        <input type = "file" value = ${paths} name = "image">

        can relate to Java, there is not a single piece of Java in this line of code, post the full code and the file name.

        Comment

        • oshna1985
          New Member
          • Jul 2006
          • 4

          #5
          I guess you are working on html, try doing this........

          <img src=(give the path of the image)>

          if this doesn't work try using microsoft frontlook. Its a tool where all the coding is done by the wizard and you just need to copy and paste items where you want to....

          I hope this works....

          Comment

          Working...