My application allows users to upload multiple images simultaneously.
Once uploaded, all image sources are stored in an array and sent using an ajax call.
Unfortunately, the ajax call returns an error stating that the size of the data is too long.
Below is a snippet of my code:
function save_domain_images(base64ImageSrc){
var datastring = "&token="+domainImgSaveSession+"&imgSrc="+base64ImageSrc+"&action=saveDomainImg";
$.ajax({
type : "POST",
url : base+"/AppUserListServiceProvider",
data : datastring,
cache : false,
success : function(data){
data = JSON.parse(data);
domainImgSaveSession = data["randomNew"];
if(data["error"] == null && data["croppedImg"] != null){
console.log("data : "+data["croppedImg"]);
}
},
error : function(){}
});
}