HTML code to browse and attach files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rrkrishna24
    New Member
    • Jun 2007
    • 2

    HTML code to browse and attach files

    Can someone guide how to code in simple HTML, how to browse the files and attach them. That is, when I click a button say "Attach", a window should be opened with which one can browse the files in one's machine and attach them.

    I tried to search for the HTML code to accomplish this in Google, but couldnt find any.

    Lots of thanks in advance,
    Rama
  • rrkrishna24
    New Member
    • Jun 2007
    • 2

    #2
    JUst found that we can use the HTML <input> tag <input type="file" name="datafile" >.

    Can someone tell me, using servlets, how this can be received and saved on the server side?

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      You must ask that question in the appropriate programming board.

      Comment

      • satya0414
        New Member
        • Oct 2007
        • 1

        #4
        can any one give the code for <input type ="file"> behavior in the link

        Comment

        • robin1983
          New Member
          • Oct 2007
          • 99

          #5
          are you searching for this
          [HTML]<input type="file" name="file" id="file">[/HTML]

          Originally posted by satya0414
          can any one give the code for <input type ="file"> behavior in the link

          Comment

          • JamieHowarth0
            Recognized Expert Contributor
            • May 2007
            • 537

            #6
            Hi rrkrishna,

            That question needs to be directed to the ASP, PHP, or ColdFusion boards (depending on a few different criteria - what your server supports, what operating system it runs, and what you want done with the file e.g. stored in a database or file system, and how you want it manipulated).

            If you have a Microsoft Windows server then ask your question in the ASP forum and we'll try and help you out.

            Best regards,

            medicineworker

            Comment

            Working...