In my web application I load data from MySQL database into an iframe. Sometimes files bigger than 1 Mb.
I make some changes on the file, and afterwards I send it back to the database.
The issue is that with this code below I can't send files bigger than about 1 Mb, and also the longer the files the slow it becomes:
var params = "version="+version+"&work="+actualWork+"&secName="+secName+"&text="+text; xmlHttp.open("POST",url,true); xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded;charset=UTF-8"); xmlHttp.setRequestHeader("Content-length", params.length); xmlHttp.send(params);
Could you help me on this?