function downloadReport(strUrl, objData) {
$.ajax({
url: strDashboardUrl,
data: objData,
type: 'POST',
success: function(objResponse, status) {
// redirect into file for downloading
window.open(strUrl + "record/DownloadNoteAttachment?note_id=" + objResponse.note_id, '_blank');
// hide message
$('.downloadMessage_report').hide();
// hide modal
$('#download_report_modal').modal('hide');
},
error: function(objError, status) {
alert("Error downloading File");
}
});
}
这是传递的数据
var objDataAsset = {
assetTypes: '',
asset_summary: 1,
module_name: 'job_sites',
action: 'DownloadAssetSummary',
record_id : '',
only_fails: '',
pdf: true,
from_asset_management: true
};
我有这个执行POST请求的函数,objDataAsset.assetType是一个数组,如果数组的长度小于23,请求的结果是成功,即下载文件但objDataAsset时.assetType的长度超过23,请求失败。我必须要对服务器配置做些什么吗?