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. ASP.NET
  4. Can't select a folder with FileUpload

Can't select a folder with FileUpload

Scheduled Pinned Locked Moved ASP.NET
csharpquestion
5 Posts 2 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.
  • A Offline
    A Offline
    awedaonline
    wrote on last edited by
    #1

    Is it possible to select a folder rather than a file with FileUpload control? If yes, how with code sample in VB/C#. Why I need this is because, I want to read the contents of files in a selected folder a once instead of having to select the files one-after-another. Thanks for your usual support.

    N 1 Reply Last reply
    0
    • A awedaonline

      Is it possible to select a folder rather than a file with FileUpload control? If yes, how with code sample in VB/C#. Why I need this is because, I want to read the contents of files in a selected folder a once instead of having to select the files one-after-another. Thanks for your usual support.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      No, otherwise it would be the FOLDER upload control, not the FILE upload control. You might be able to simulate a folder upload using JavaScript and Ajax but there are a lot of variables to consider, like maximum number of files, file size and type, what to do if a file can't be uploaded.


      I know the language. I've read a book. - _Madmatt

      A 1 Reply Last reply
      0
      • N Not Active

        No, otherwise it would be the FOLDER upload control, not the FILE upload control. You might be able to simulate a folder upload using JavaScript and Ajax but there are a lot of variables to consider, like maximum number of files, file size and type, what to do if a file can't be uploaded.


        I know the language. I've read a book. - _Madmatt

        A Offline
        A Offline
        awedaonline
        wrote on last edited by
        #3

        I appreciate your prompt response. But I can't find the FolderUpload control in my toolbox. Do you have a sample program/article on how to simulate this with JavaScript and Ajax as you said? Thanks.

        N 1 Reply Last reply
        0
        • A awedaonline

          I appreciate your prompt response. But I can't find the FolderUpload control in my toolbox. Do you have a sample program/article on how to simulate this with JavaScript and Ajax as you said? Thanks.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          awedaonline wrote:

          I can't find the FolderUpload control in my toolbox.

          :laugh: :laugh: :laugh: Because there isn't one. :rolleyes: This is a good indicator that you should stop what your doing and let someone else handle it before you hurt yourself


          I know the language. I've read a book. - _Madmatt

          A 1 Reply Last reply
          0
          • N Not Active

            awedaonline wrote:

            I can't find the FolderUpload control in my toolbox.

            :laugh: :laugh: :laugh: Because there isn't one. :rolleyes: This is a good indicator that you should stop what your doing and let someone else handle it before you hurt yourself


            I know the language. I've read a book. - _Madmatt

            A Offline
            A Offline
            awedaonline
            wrote on last edited by
            #5

            Thanks

            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