2 Replies Latest reply on Dec 15, 2006 1:34 PM by Newsgroup_User

    multiple file upload

    Level 7
      Hi all,
      http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-fil e-element/#comment-173
      This link show how to do multiple upload files, very nice...
      The front-end is done as the example in coldfusion, but the back-end is my
      problem.
      In my page I have get method and can't figure out how to get the file names
      from the url.
      When I submit the page looks like
      http://mywebpage/uploadfiles.cfm?file_2=&file_1=sample1.doc&file_0=sample2.doc&upload=uplo ad
      How can I get the names so I can pass to my cffile upload action?
      Tks in advance

      JFB


        • 1. Re: multiple file upload
          Level 7
          What this is doing is dynamically creating invisible <input
          type="file"...> tags. When you submit the form, you will have to
          process each of these tags individually with a <cffile...> tag.

          Some intelligent use of looping and string processing should make this
          pretty easy.

          I suspect you do not have your base form set up correctly. It needs to
          have a method="post" and a enctype="multipart/form-data".
          • 2. Re: multiple file upload
            Level 7
            You got Ian... it was the post method...
            Tks
            JFB


            "Ian Skinner" <ian.skinner@bloodsource.org> wrote in message
            news:elsl71$b24$1@forums.macromedia.com...
            > What this is doing is dynamically creating invisible <input
            > type="file"...> tags. When you submit the form, you will have to process
            > each of these tags individually with a <cffile...> tag.
            >
            > Some intelligent use of looping and string processing should make this
            > pretty easy.
            >
            > I suspect you do not have your base form set up correctly. It needs to
            > have a method="post" and a enctype="multipart/form-data".