Hi friends,
i am trying to upload images to folder using jquery.
its working when i uploading 100 to 150 files.
but if maximum 300 images means its not calling ajax method.
showing error as not found.
please help.
// UploadInputFile
$("#UploadInputFile").click(function (e) {
var files = $("#fileinputType").get(0).files;
var fileData = new FormData();
for (var i = 0; i < files.length; i++) {
fileData.append("fileinputType", files[i]);
}
UploadImageFiles(fileData)
});
var UploadImageFiles = function (fileData) {
$.ajax({
type: "POST",
url: "ModuleRedirect/UploadCustomerFiles",
contentType: false,
processData: false,
async: false,
data: fileData,
cache: false,
success: function (data) {
$('#fileinputType').val('');
swal("Success", "Files Uploaded Successfully", "success");
},
error: function (result) {
alert("Error: " + result.statusText);
},
beforeSend: function () {
// $('.loading-container').show();
},
complete: function () {
// $('.loading-container').hide();
}
});
}