Hello everybody, I need copy each item from one multiple file in separated simples type file, and submit them to the server (
tomcat,
jsp). My code en jsp:
1) input multiple="multiple" type="file" id="fileMultiple" ...
2) 10 different input type="file" name="file_hidden_1 (2, 3, ...)"
3) In jscript, inside a iteration for(var i=0; ...
3.1) document.getElementById('file_hidden_' + (i+1)).files[0] = ficMultiple.files.item(i);
I do this for to submit each file via ajax (DWR3; FileTransfer) using only one user selection of files. But the files arrive to the server without name and 0 bytes.
The question: Somebody make this 3.1) line correctly? I attempt too modify the value of each hidden but don't works. Any idea?
Thanks in advance.