I just want to send the raw plain text in a Ajax call without additional header stuff like:
------WebKitFormBoundarycwwJjby5xTdrlr48
Content-Disposition: form-data; name="upload"; filename="any"
Content-Type: ....
Ajax call:
var fd = new FormData();
fd.append( 'file', input.files[0] );
$.ajax({
url: '/handle_restful_call',
data: fd,
processData: false,
contentType: false,
type: 'POST',
success: function(data){
alert(data);
}
});
Update: I am not using php on server side. Back to topic is it possible to only send the raw data??