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 1cfd3cd commit 8d7b0a2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions application/views/inspectionform.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,10 @@ function uploadFile() {
formData.append("file", fileupload.files[j])
console.table(fileupload.files[j]);
}
console.table(formData);
console.table(formData.file);

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

/*

$.ajax({
url:'/inspection/imgupload',
type:'post',
Expand All @@ -335,7 +334,7 @@ function uploadFile() {
contentType: false,
processData: false,
success:function(response){
alert(response.files);
console.table(response.files);

/* document.getElementById('results').innerHTML +=
'<div id="imgbox-'+i+'" class="col-md-3"><img id="imageprev-'+i+'" class="img-fluid" src="'+response.url+'"/></div>';
Expand All @@ -350,9 +349,9 @@ function uploadFile() {

//append to form element that you want .
document.getElementById("imagefields").appendChild(input); */
/* }
}
});
*/


}

Expand Down

0 comments on commit 8d7b0a2

Please sign in to comment.