I have an
<input type="file" id="files" name="files[]" multiple runat="server" />
I don't use asp:FileUpload because I need to use a jQuery plugin for multiple image previews and for deleting images before upload them.
My question is How can I manage input data from code behind? I have to loop through selected images. I searched on the web and I didn't find anything interesting...
If I try, from code behind to read in this way:
HttpPostedFile file = Request.Files["files[]"];
I see that Request.Files.Count is always 0.
Thanks in advance!
To Be Honest a quick search gave me this:
In your aspx :
In code behind :
Update
Another Quick Search gave me this, if you have multiple files then the solution to get them all would be: