Join date: May 14, 2022


Bhadra Kalyanam Book In Telugu [Latest]




Home - Sri Vaibhav Foundation Category: Telugu-language literature Category: Indian literature Category: Inspirational novelsQ: Uploading multiple images using JS-CORE I'm trying to upload multiple images using JS-CORE. The user will select the images he wants to upload and at the end, it will show him the images to select in the list. The first image will upload and when he clicks the next button the second will be added. The problem that I'm having is that when I submit the form, only the first image is being added, the rest are not added. The code is below: var formData = new FormData(); $(".load-more").on('click', function(event) { formData.append("file", $("#profile_pic")[0].files[0]); console.log("formData: " + formData); //console.log(fileList); console.log($("#fileList").val()); }); $(".add-file").on('click', function(event) { var counter = $("#fileList").val(); var formData = new FormData(); formData.append("file", $("#fileList")[0].files[0]); formData.append("counter", counter); console.log("formData: " + formData); console.log(formData); $.ajax({ url: "", type: "POST", data: formData, processData: false, contentType: false, success: function(data) { console.log(data); }, error: function(data) { console.log(data); }




Bhadra Kalyanam Book In Telugu [Latest]

More actions