This is a migrated thread and some comments may be shown as answers.

Non async, and multiple files

1 Answer 148 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 29 Feb 2012, 07:50 PM

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?

1 Answer, 1 is accepted

Sort by
0
Vivek
Top achievements
Rank 1
answered on 25 Apr 2012, 07:46 AM
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.
Tags
Upload
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Vivek
Top achievements
Rank 1
Share this question
or