Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Upload Directory of Images

Upload Directory of Images

Scheduled Pinned Locked Moved Web Development
csharpasp-netvisual-studiohelp
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tadhg88
    wrote on last edited by
    #1

    Hi, I am developing a web app using C#, asp.net and vs 2003 but i am having trouble trying to upload a directory of images using a single FileUpload control to select the first file and then loop through files in directory but i have discovered this only saves the first file x many times. So i am just wondering if anyone knows any way to do this, any help or advice would be appreciated Thanks in advance Tim

    S 1 Reply Last reply
    0
    • T tadhg88

      Hi, I am developing a web app using C#, asp.net and vs 2003 but i am having trouble trying to upload a directory of images using a single FileUpload control to select the first file and then loop through files in directory but i have discovered this only saves the first file x many times. So i am just wondering if anyone knows any way to do this, any help or advice would be appreciated Thanks in advance Tim

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      Most, if not all, current web browsers only support uploading one file per <input type="file"> element. You don't get to iterate through a directory or anything like that, since that would give malicious pages opportunity to access files the user did not actually intend for you to have.

      Citizen 20.1.01

      'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

      T 1 Reply Last reply
      0
      • S Shog9 0

        Most, if not all, current web browsers only support uploading one file per <input type="file"> element. You don't get to iterate through a directory or anything like that, since that would give malicious pages opportunity to access files the user did not actually intend for you to have.

        Citizen 20.1.01

        'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

        T Offline
        T Offline
        tadhg88
        wrote on last edited by
        #3

        Thank for your reply i see what you mean but do you know is there any other way to upload multiple(up to 30) images quickly without having to place 30 upload controls on the page. Regards Tim

        B S 2 Replies Last reply
        0
        • T tadhg88

          Thank for your reply i see what you mean but do you know is there any other way to upload multiple(up to 30) images quickly without having to place 30 upload controls on the page. Regards Tim

          B Offline
          B Offline
          Bradml
          wrote on last edited by
          #4

          You could use a Java applet which should do exactly what you want.


          Brad Australian The PHP MVP - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

          1 Reply Last reply
          0
          • T tadhg88

            Thank for your reply i see what you mean but do you know is there any other way to upload multiple(up to 30) images quickly without having to place 30 upload controls on the page. Regards Tim

            S Offline
            S Offline
            Shog9 0
            wrote on last edited by
            #5

            Google for multiple file input. There are ways of re-using a single <input type="file"> element. No multi-select though; you would have to resort to something outside of HTML+script for that.

            Citizen 20.1.01

            'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

            T 1 Reply Last reply
            0
            • S Shog9 0

              Google for multiple file input. There are ways of re-using a single <input type="file"> element. No multi-select though; you would have to resort to something outside of HTML+script for that.

              Citizen 20.1.01

              'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

              T Offline
              T Offline
              tadhg88
              wrote on last edited by
              #6

              its looking like the project needs to be upgraded to 2005 to have any chance of doing this, thanks for ur replies guys its appreciated Regards Tim

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups