Skip to content

Commit

Permalink
multiple-photos
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Apr 17, 2024
1 parent 6921e08 commit 5cf6d29
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion application/views/inspectionform.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,13 @@ function trashSnap() {
function uploadFile() {
i = i+1;
let formData = new FormData();
alert(fileupload.length)
//if(fileupload.files[0].length > 0) {
formData.append("file", fileupload[].files);
for (let i = 0; i < fileupload.length; i++) {
formData.append(fileupload[i].files)
}

//formData.append("file", fileupload[].files);
alert(formdata)

$.ajax({
Expand Down

0 comments on commit 5cf6d29

Please sign in to comment.