设法使这个工作:)
这是我的代码…
///create a new FormData objectvar formData = new FormData(); //var formData = new FormData($('form')[0]);///get the file and append it to the FormData objectformData.append('file', $('#file')[0].files[0]);///AJAX request$.ajax({ ///server script to process data url: "fileupload.ashx", //web service type: 'POST', complete: function () { //on complete event }, progress: function (evt) { //progress event }, ///Ajax events beforeSend: function (e) { //before event }, success: function (e) { //success event }, error: function (e) { //errorHandler }, ///Form data data: formData, ///Options to tell JQuery not to process data or worry about content-type cache: false, contentType: false, processdata: false});///end AJAX request


