It is very frustrating that it is not possible to upload multiple files. The solution suggested at the link posted in this thread
is really not as powerfull as I had hoped for.
The problem is that every time the add button is clicked in order to move the selected file to the selected list, it will actually upload the file; i.e. the file is not
uploaded when the upload
button is clicked. When the upload button is clicked they are just saved to the server from memory. The solution will therefore also have all pictures in memory before clicking the upload button.
Well, my first though (probably not well though-through) was to add the files selected to the list dynamically (client-side) using java script and then upload them using server-side as in the example. The thing I missed was the fact that I cannot post items added through java script, or am I wrong on this?
var option = document.createElement("option");
option.text = document.upload.file.value;
<input id="file" type="file" onchange="addFile();" style="width:400px;" /><br/>
<select id="files" multiple="true" style="width:400px;" size="10" />
I found a similar version here
Since the page is not reloaded, the items are not really added to the page why the ASP.NET server-side code cannot see the items added. Moreover, the above script only add the text and not the input object (this could be fixed).
Then I have searched for another solution on the web, however, no solutions that would do the trick have come up. How can I make an good upload solution?
This problem must have been solved before
I found several solutions where java script was used to generate an MSXML object and the post the document to the web server, where an ASP document picked up the request, but I can't make it work. See e.g. here
Any comments on this solution? And is it possible to have ASP.NET pick up the request? Experiences?
I am dying for a solution. This problem is super annoying.