Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a file upload control for uploading many files at a time i have set multiple=true which works fine in chrome and firefox .In Chrome and Firefox when i select multiple files they gets uploaded but in Internet explorer it does not select multiple files why??
.aspx
ASP.NET
<asp:FileUpload ID="fuUploadImage" runat="server" CssClass="txtbox2" multiple="true" />
Posted
Updated 10-Jun-14 22:05pm
v3
Comments
Kornfeld Eliyahu Peter 11-Jun-14 3:08am    
Please be more specific - 'does not work' is a very weak definition of error...
gggustafson 11-Jun-14 12:57pm    
I have a problem with your requirement. Let's say that a user could select multiple files to upload. Where do the files get saved? Placing the content of many files into one file does not make sense. Let your user select one file at a time.

1 solution

The proper property is AllowMultiple and is available starting in .Net 4.5 I believe:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.fileupload.allowmultiple(v=vs.110).aspx[^]

According to this, http://imar.spaanjaars.com/567/uploading-multiple-files-at-once-using-aspnet-45[^] IE9 and previous do not support it.

Usually if you see something works in FireFox and Chrome but not in IE you already have your answer. The code is correct, the browser is not.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900