From 4d97681d13e2cc0dc14202fafa6ced6cbf9eb224 Mon Sep 17 00:00:00 2001 From: pavlosb Date: Thu, 18 Apr 2024 13:23:28 +0300 Subject: [PATCH] multiple-image --- application/views/inspectionform.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/views/inspectionform.php b/application/views/inspectionform.php index 0b4ca40..ca4d6b2 100644 --- a/application/views/inspectionform.php +++ b/application/views/inspectionform.php @@ -331,8 +331,9 @@ function uploadFile() { contentType: false, processData: false, success:function(response){ + alert(response.files); - document.getElementById('results').innerHTML += +/* document.getElementById('results').innerHTML += '
'; var input = document.createElement("input"); @@ -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); */ } });