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. Multiple File Attachment

Multiple File Attachment

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadmindockerquestion
4 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.
  • M Offline
    M Offline
    MihirV
    wrote on last edited by
    #1

    Hi All, To upload a single file in ASP.Net is very easy task.. but what if to upload multiple files in one go, i see many examples to upload files but every one has a post back event after selecting one file. exactly what i want is to user can select files and click on the send button and all the files are posted to the server in one server visit... you can see the GMail - compose new mail page....where you can attach multiple files with your mail. has anybody idea about this?? Mihir...

    V 1 Reply Last reply
    0
    • M MihirV

      Hi All, To upload a single file in ASP.Net is very easy task.. but what if to upload multiple files in one go, i see many examples to upload files but every one has a post back event after selecting one file. exactly what i want is to user can select files and click on the send button and all the files are posted to the server in one server visit... you can see the GMail - compose new mail page....where you can attach multiple files with your mail. has anybody idea about this?? Mihir...

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      Hi Mihir: You can do it. All UploadedFiles are available to you in oneshot after the single postback through HttpPostedFiles Collection. You can iterate through it and save the files to the desired folder. Deepak Kumar Vasudevan Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/

      M 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        Hi Mihir: You can do it. All UploadedFiles are available to you in oneshot after the single postback through HttpPostedFiles Collection. You can iterate through it and save the files to the desired folder. Deepak Kumar Vasudevan Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/

        M Offline
        M Offline
        MihirV
        wrote on last edited by
        #3

        hi deepak you are rite, we can get that collection from Request.Files property, but i have confusion that how to upload multiple files from client...(Without provision of multiple INPUT-FILE Element)..are you getting me? i dont know how many files will been uploaded... if you give me more explainatory example, i can understand properly..:) thanks for reply Mihir...

        V 1 Reply Last reply
        0
        • M MihirV

          hi deepak you are rite, we can get that collection from Request.Files property, but i have confusion that how to upload multiple files from client...(Without provision of multiple INPUT-FILE Element)..are you getting me? i dont know how many files will been uploaded... if you give me more explainatory example, i can understand properly..:) thanks for reply Mihir...

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          Hi Mihir: One Input FileElement corresponds to one File only right? Deepak Vasudevan 91 98400 26014 Deepak Kumar Vasudevan Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/

          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