Ionic2 无法使用ionic中的“fileTransfer”插件将签名上载到远程服务器,但在本地服务器上可以正常工作

Ionic2 无法使用ionic中的“fileTransfer”插件将签名上载到远程服务器,但在本地服务器上可以正常工作,ionic2,ionic3,file-transfer,signature,Ionic2,Ionic3,File Transfer,Signature,我正在使用fileTransfer插件在我的爱奥尼亚2应用程序中上传签名。要捕获签名,我使用的是angular2 signaturepad let options: FileUploadOptions = { fileKey: 'file', fileName: 'Order_'+this.order_data.order_id+"_"+this.order_data.order_type+".png", headers: {}, }; fileTransfer.uplo

我正在使用
fileTransfer
插件在我的爱奥尼亚2应用程序中上传签名。要捕获签名,我使用的是
angular2 signaturepad

let options: FileUploadOptions = {
    fileKey: 'file',
    fileName: 'Order_'+this.order_data.order_id+"_"+this.order_data.order_type+".png",
    headers: {},
};
fileTransfer.upload(this.signaturePad.toDataURL(), 
this.api+'php/wd_upload.php?location=signs', options)
    .then((data) => {
      // success
    }, (err) => {
      // error
    });
以上代码在本地服务器上运行良好,签名上传成功。但当我试图更改此api以引用远程服务器时。此文件传输失败,出现以下错误

body: "<head><title>Not Acceptable!</title></head><body><h1>Not Acceptable!</h1><p>An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.</p></body></html>"
code: 1
exception: "http://<remote_server>/php/wd_upload.php?location=signs"
http_status: 406
source: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAADICAYAAABS39xVAAAYsElEQVR4Xu2dXXBVVZbHd4QmCfMyScq ...."
target: "http://<remote_server>/php/wd_upload.php?location=signs"
body:“不可接受!不可接受!在此服务器上找不到请求资源的适当表示形式。此错误由Mod_Security生成。

” 代码:1 例外情况:“http:///php/wd_upload.php?location=signs" http_状态:406 资料来源:“数据:image/png;base64,ivborw0kggoaaaansuheugaaaswaaadicayaaabs39xvaaayseleqvr4xu2dxbvzbhd4qmcfmyscq…” 目标:“http:///php/wd_upload.php?location=signs"

请解决这个问题

当我更换
选项时,一切正常,如下所示

let options: FileUploadOptions = {
    fileKey: 'file',
    fileName: 'Order_'+this.order_data.order_id+"_"+this.order_data.order_type+".png",
    httpMethod : 'POST',
    mimeType: 'image/png',
    chunkedMode: false,
    headers : {"Accept": "image/png"}
  };