SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    1,285
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Upload Multiple Files with C#

    Hi,

    I'm very new to ASP.NET and would really appreciate some pointers with this issue I've been having.

    I have 8 file fields in my form and when the user submits the form, I would like to loop through all these fields and 'save' any files to my server.

    All fields are optional so any one of them could contain files.

    Can someone show me how I can do this?

    I plan to ultimately then store each filename in a particular column in a table in my database.

    My table structure is:
    img1 | img1small | img2 | img2small | img3 ....and so on....

    So img1 field filename would be stored in img1 and so on.


    Many thanks for any guidance with this

  2. #2
    Non-Member
    Join Date
    May 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    multiple files upload using one HttpInputFile control
    developer use the <input type=file/> in the html code

  3. #3
    SitePoint Wizard webcosmo's Avatar
    Join Date
    Oct 2007
    Location
    Boston, MA
    Posts
    1,480
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    there are tons of references around. you could google it easily.

    anyways here is one from ms Uploading Files in ASP.NET 2.0


Tags for this Thread

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
  •