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 cb0c944 commit 4d97681
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/views/inspectionform.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,9 @@ function uploadFile() {
contentType: false,
processData: false,
success:function(response){
alert(response.files);

document.getElementById('results').innerHTML +=
/* document.getElementById('results').innerHTML +=
'<div id="imgbox-'+i+'" class="col-md-3"><img id="imageprev-'+i+'" class="img-fluid" src="'+response.url+'"/></div>';
var input = document.createElement("input");

Expand All @@ -344,7 +345,7 @@ function uploadFile() {
input.setAttribute("value", response.url);

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

Expand Down

0 comments on commit 4d97681

Please sign in to comment.