I have form with multiple file inputs
<input type="file" name="images[]" multiple>
<input type="file" name="images[]" multiple>
<input type="file" name="images[]" multiple>
.....
user can upload multiple files from one input. form submits on input change(when user select files and click upload). is there way to get one specific file from this input and assign it to another one? lets say user select 3 files in first input. what i want to do is to 'take' 2 files(so in first input only one file left) and assign them to another 2 inputs. so in the end, each input has only one file. how can i do that? I tried to get value from input $('#myInput').val()
but it returns only last file. also tried var files = document.getElementById("myInput").files
but it doesn't help, I cannot 'take' files and assign them to another inputs