Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function preparingFiles(element, inputIndex) {
- //This is the 0-3 files array
- filesArray.splice(inputIndex, 1, element[0].files[0]);
- //This is the row array
- rowArray.splice(rowIndex, 1, filesArray);
- }
- var data = new FormData();
- for (var i = 0; i < (rowArray.length); i++) {
- data.append("files[]",rowArray[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement