Multiple file uploads

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • 3A Web Hosting

    #1

    Multiple file uploads

    Hi

    Is it possible to perform multiple file uploads via a form? It's no
    problem uploading single files but I want to be able to highlight a
    group of files and upload them all in one go. My current method,
    multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means
    selecting each file individually.

    --
    Colin

    3A Web Hosting Team

  • jn

    #2
    Re: Multiple file uploads

    "3A Web Hosting" <info@3awebhost ing.co.uk> wrote in message
    news:3FF06016.E C440F52@3awebho sting.co.uk...[color=blue]
    > Hi
    >
    > Is it possible to perform multiple file uploads via a form? It's no
    > problem uploading single files but I want to be able to highlight a
    > group of files and upload them all in one go. My current method,
    > multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means
    > selecting each file individually.
    >
    > --
    > Colin
    >
    > 3A Web Hosting Team
    > http://www.3awebhosting.co.uk
    >[/color]

    You can't do that with a regular HTML form.

    http://sourceforge.net/projects/jupload/

    Use the JUpload applet. It sits on your upload page, and the applet submits
    to a processing script that you specify. (Your browser doesn't leave the
    upload page though...it shows you a progress bar, and tells you when it is
    done).

    When you upload the files, they will be available in your processing script
    as $_FILES["File1"], $_FILES["File2"], etc.


    Comment

    • FLEB

      #3
      Re: Multiple file uploads

      Regarding this well-known quote, often attributed to 3A Web Hosting's
      famous "Mon, 29 Dec 2003 17:10:46 +0000" speech:
      [color=blue]
      > Hi
      >
      > Is it possible to perform multiple file uploads via a form? It's no
      > problem uploading single files but I want to be able to highlight a
      > group of files and upload them all in one go. My current method,
      > multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means
      > selecting each file individually.[/color]

      Nope... not without some sort of Java, Flash, or other client-side
      front-end.

      If you have the access, you could make some sort of FTP drop-box processor,
      but that's iffy.

      --
      -- Rudy Fleminger
      -- sp@mmers.and.ev il.ones.will.bo w-down-to.us
      (put "Hey!" in the Subject line for priority processing!)
      -- http://www.pixelsaredead.com

      Comment

      • jn

        #4
        Re: Multiple file uploads

        "jn" <jsumner1@cfl.r r.com> wrote in message
        news:r90Ib.9064 4$Dt6.2405334@t wister.tampabay .rr.com...[color=blue]
        > "3A Web Hosting" <info@3awebhost ing.co.uk> wrote in message
        > news:3FF06016.E C440F52@3awebho sting.co.uk...[color=green]
        > > Hi
        > >
        > > Is it possible to perform multiple file uploads via a form? It's no
        > > problem uploading single files but I want to be able to highlight a
        > > group of files and upload them all in one go. My current method,
        > > multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means
        > > selecting each file individually.
        > >
        > > --
        > > Colin
        > >
        > > 3A Web Hosting Team
        > > http://www.3awebhosting.co.uk
        > >[/color]
        >
        > You can't do that with a regular HTML form.
        >
        > http://sourceforge.net/projects/jupload/
        >
        > Use the JUpload applet. It sits on your upload page, and the applet[/color]
        submits[color=blue]
        > to a processing script that you specify. (Your browser doesn't leave the
        > upload page though...it shows you a progress bar, and tells you when it is
        > done).
        >
        > When you upload the files, they will be available in your processing[/color]
        script[color=blue]
        > as $_FILES["File1"], $_FILES["File2"], etc.
        >
        >
        >[/color]

        By the way, there are a couple of better applets out there...but I
        recommended this one because it's free and I'm a cheap bastard.


        Comment

        • CountScubula

          #5
          Re: Multiple file uploads

          3A Web Hosting <info@3awebhost ing.co.uk> wrote in message news:<3FF06016. EC440F52@3awebh osting.co.uk>.. .[color=blue]
          > Hi
          >
          > Is it possible to perform multiple file uploads via a form? It's no
          > problem uploading single files but I want to be able to highlight a
          > group of files and upload them all in one go. My current method,
          > multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means
          > selecting each file individually.[/color]

          Not realy, at least as far as I am aware of, this is a function of the
          browser/HTML not the PHP script.

          What I have done in the past is to allow a .zip file upload and the
          server unzips it and goes to work.

          Mike Bradley
          http://gzen.myhq.info -- free online php tools

          Comment

          • 3A Web Hosting

            #6
            Re: Multiple file uploads

            Hi
            [color=blue]
            > By the way, there are a couple of better applets out there...but I
            > recommended this one because it's free and I'm a cheap bastard.[/color]

            I know the feeling ;-)

            I'll give it a try

            --
            Colin

            3A Web Hosting Team

            Comment

            • 3A Web Hosting

              #7
              Re: Multiple file uploads

              Hi Folks

              Thanks for all the replies. I thought it was probably a browser issue.
              I'll play around with Java and see how I get on. Not the path I would
              prefer but......

              --
              Colin

              3A Web Hosting Team

              Comment

              • Chris Mosser

                #8
                Re: Multiple file uploads

                "jn" <jsumner1@cfl.r r.com> wrote in message
                news:r90Ib.9064 4$Dt6.2405334@t wister.tampabay .rr.com...[color=blue]
                > "3A Web Hosting" <info@3awebhost ing.co.uk> wrote in message
                > news:3FF06016.E C440F52@3awebho sting.co.uk...[color=green]
                > > Hi
                > >
                > > Is it possible to perform multiple file uploads via a form? It's no
                > > problem uploading single files but I want to be able to highlight a
                > > group of files and upload them all in one go. My current method,
                > > multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but means
                > > selecting each file individually.
                > >
                > > --
                > > Colin
                > >
                > > 3A Web Hosting Team
                > > http://www.3awebhosting.co.uk
                > >[/color]
                >
                > You can't do that with a regular HTML form.
                >
                > http://sourceforge.net/projects/jupload/
                >
                > Use the JUpload applet. It sits on your upload page, and the applet[/color]
                submits[color=blue]
                > to a processing script that you specify. (Your browser doesn't leave the
                > upload page though...it shows you a progress bar, and tells you when it is
                > done).
                >
                > When you upload the files, they will be available in your processing[/color]
                script[color=blue]
                > as $_FILES["File1"], $_FILES["File2"], etc.
                >
                >[/color]

                maybe I'm missing something here, but I created an HTML form that allows
                upto 4 jpg's to be uploaded at the same time and it works fine?!

                CMosser


                Comment

                • jn

                  #9
                  Re: Multiple file uploads

                  "Chris Mosser" <cmosser_at_com cast_dot_net> wrote in message
                  news:aLOdnfVkis yBRm2iRVn-uA@comcast.com. ..[color=blue]
                  > "jn" <jsumner1@cfl.r r.com> wrote in message
                  > news:r90Ib.9064 4$Dt6.2405334@t wister.tampabay .rr.com...[color=green]
                  > > "3A Web Hosting" <info@3awebhost ing.co.uk> wrote in message
                  > > news:3FF06016.E C440F52@3awebho sting.co.uk...[color=darkred]
                  > > > Hi
                  > > >
                  > > > Is it possible to perform multiple file uploads via a form? It's no
                  > > > problem uploading single files but I want to be able to highlight a
                  > > > group of files and upload them all in one go. My current method,
                  > > > multiple <INPUT TYPE="FILE" NAME="userfile[x]"> entries, works but[/color][/color][/color]
                  means[color=blue][color=green][color=darkred]
                  > > > selecting each file individually.
                  > > >
                  > > > --
                  > > > Colin
                  > > >
                  > > > 3A Web Hosting Team
                  > > > http://www.3awebhosting.co.uk
                  > > >[/color]
                  > >
                  > > You can't do that with a regular HTML form.
                  > >
                  > > http://sourceforge.net/projects/jupload/
                  > >
                  > > Use the JUpload applet. It sits on your upload page, and the applet[/color]
                  > submits[color=green]
                  > > to a processing script that you specify. (Your browser doesn't leave the
                  > > upload page though...it shows you a progress bar, and tells you when it[/color][/color]
                  is[color=blue][color=green]
                  > > done).
                  > >
                  > > When you upload the files, they will be available in your processing[/color]
                  > script[color=green]
                  > > as $_FILES["File1"], $_FILES["File2"], etc.
                  > >
                  > >[/color]
                  >
                  > maybe I'm missing something here, but I created an HTML form that allows
                  > upto 4 jpg's to be uploaded at the same time and it works fine?!
                  >
                  > CMosser
                  >
                  >
                  >[/color]

                  By having 4 different file fields, yes you can do that. He doesn't want to
                  do it one by one...he wants to select multiple files and submit it using one
                  thing. I use that JUpload applet to upload many photos to my galleries (like
                  50) at the same time.


                  Comment

                  • CountScubula

                    #10
                    Re: Multiple file uploads

                    I think he is looking to click one upload button, and inster 4 files into
                    one box by highlighting more than one, instead of having sever inpout boxes
                    on a form. At least I think that what he is asking

                    --
                    Mike Bradley
                    http://gzen.myhq.info -- free online php tools


                    Comment

                    • 3A Web Hosting

                      #11
                      Re: Multiple file uploads

                      Hi
                      [color=blue]
                      > I think he is looking to click one upload button, and inster 4 files into
                      > one box by highlighting more than one, instead of having sever inpout boxes
                      > on a form. At least I think that what he is asking[/color]

                      Yup, that's what I'm after. Having 20+ input boxes would be a real pain!

                      --
                      Colin

                      3A Web Hosting Team

                      Comment

                      Working...