SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Wizard geiger's Avatar
    Join Date
    Jul 2001
    Posts
    2,459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple Selections on Browse Form Fields

    How do you allow multiple selections on "browse" form fields?

    Code:
    <input type="file" name="hidden1" size="30">
    I tried adding "multiple" to the tag like so, but it didn't work:
    Code:
    <input type="file" name="hidden1" size="30" multiple>
    Thanks in advance.

  2. #2
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think there is a way. :-(

    Most of the time I see something like that, you have to upload the files one at a time. I suppose though, a nifty JavaScript contraption could work for multiple files. So it isn't all bad news. :-)

    ~~Ian

  3. #3
    SitePoint Wizard geiger's Avatar
    Join Date
    Jul 2001
    Posts
    2,459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aww... there has to be SOME way! I know in normal Windows programs it's possible. I just don't know where...

  4. #4
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you know for certain that the target audience will be using Windows and Explorer? If so, there may well be a way, but I don't know it, 'cause I use Opera.

    If you look at the free e-mail access sites, they all seem to use a browse field with a 'add attachment' button so that you have to load up the files one at a time. Taking my cues from them, I don't think there is a cross browser way, unfortunately. You'd think there should be, though. :-(

    ~~Ian

  5. #5
    SitePoint Wizard geiger's Avatar
    Join Date
    Jul 2001
    Posts
    2,459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's not ESSENTIAL for multiple selections. If it works on Windows and not on Mac, then it still works for singel files, at least. It's for http://4netdesign.com/clients/admin.html

  6. #6
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am absolutely positive that there is no way to do multiple file selections other than proividing multiple "browse" fields. Even with javascript you weon't be able to do it as javascript is disabled for browser fields on ALL modern browsers (for obvious reasons - the last thing we want is sites that can secretly use javascript to populate the file upload field with important files from your PC and upload them without you knowing).

    You might be able to do multiple file uploads using a java applet or some kind of nasty active X component however.

  7. #7
    SitePoint Wizard geiger's Avatar
    Join Date
    Jul 2001
    Posts
    2,459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh

    Es no far!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •