Non async, and multiple files

2 posts, 0 answers
  1. Jeremy
    Jeremy avatar
    56 posts
    Member since:
    Nov 2011

    Posted 29 Feb 2012 Link to this post

    If using the upload control as a drop-in replacement for the default file upload control (not using async), is it possible to handle multiple files on the server-side?

    I don't see how it is possible since when you get back to the server-side, there is only one fileUpload control on the page. Thus one file.

    Is there some trick I am missing?  Or do I need to turn off multiple files, unless using async?

  2. Vivek
    Vivek avatar
    13 posts
    Member since:
    Aug 2011

    Posted 25 Apr 2012 Link to this post

    You send the attachments as an array. Basically, give the attachment control a name like name="attachment[]" and on the server-side you then get an array of files.
Back to Top