Skip to content

Commit

Permalink
multiple-image
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Apr 18, 2024
1 parent 29b1c7f commit 655e057
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/views/inspectionform.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,10 @@ function uploadFile() {
i = i+1;
let formData = new FormData();
const fileInput = document.getElementById("fileupload");
const selectedFiles = fileInput.files;

//if(fileupload.files[0].length > 0) {
for (let j = 0; j < fileInput.length; j++) {
for (let j = 0; j < selectedFiles.length; j++) {

formData.append("file[]", selectedFiles[j])

Expand Down

0 comments on commit 655e057

Please sign in to comment.