my code is some thing like this , and in success result msg.d is undefined . i think it is related to formdata as value that is passed to jquery ajax . but i dont know can i resolve it .what is wrong with that ?!
var files = event.originalEvent.dataTransfer.files; // i get it in drop event
var data = new FormData();
jQuery.each(files, function (i, file) {
data.append('file-' + i, file);
});
$.ajax({
type: "POST",
url: parameters.Url,
contentType: false,
processData: false,
data: data,
success: function (msg) { //my return value from webservice is just "hello"
alert(msg.d);
}
});
}