I have a map that has about 50M, and I need to send it to my server in order to manipulate and return the process result. The problem is that my server only got 4MB so I'm trying to transform this data into a "file" and upload it.
I've already tried to change the Content-Type to "form-urlencoded" by doing something like this:
var obj = {};
obj.contentType = 'application/x-www-form-urlencoded';
obj.url = 'testsStamps.php';
obj.data = {'test':large_data};
obj.dataType = 'text';
obj.complete = function(jqXHR,textStatus){
console.log(jqXHR,textStatus);
};
obj.beforeSend = function(xhr){
xhr.overrideMimeType("application/x-www-form-urlencoded; charset=UTF-8");
console.log(xhr);
};
$.ajax(obj).done(function(msg){$('#anchor').text(msg);});
But at server side there are no "$_FILES['test']" defined.
Besides that, the ".htaccess" has setted the "php_value post_max_size 100M" and " upload_max_filesize 100M". Plus, the "ini_set('memory_limit','250000M')".