<input type='file' id='files' multiple/> function handlefiles(){ // I'm looping through the files and passing them in an array so I be able to edit it // say the user selects 8 files then deletes 3 of them... I need to put the 5 remaining files in the $("files").val(); push the array in there or whatever the hell works better to achieve what I want // now say the 5 remaining files are the ones the user wants to upload, the $("files").val() stays in the previous 8, that's my problem. } $("#pics").on('change', function(){ readURL(); // I'm reading the files as a data URL. },handlefiles);
Quote:My problem lies in how I'm going to upload the remaining files since the items in the file element stays immutable....
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)