在科多瓦1.6.0号工作时,我花了时间。 我没有用较早的版本对其进行审判,因此我不知道这是否是一个新问题。
var options = new FileUploadOptions();
options.fileKey = "file";
var ft = new FileTransfer();
ft.upload(
imageURLToLocalFile,
urlToMyServiceEndpoint,
successhandler,
errorhandler,
options
);
在X条码中,见I。
*** WebKit discarded an uncaught exception in the
webView:decidePolicyForNavigationAction:request:frame:decisionListener:
delegate: <NSRangeException> ***
-[JKArray objectAtIndex:]: index (1) beyond bounds (1)
Seems to me that when the Cordova exec function is calls the home filehandler function this event, but I has no concept how to interpret the misnote.
我对造成错误的呼声,即Cordova案卷宗中的文件Transfer.prototype.upload功能,没有什么怀疑。 1.6版是:
exec(
successCallback,
errorCallback,
FileTransfer ,
upload ,
[filePath, server, fileKey, fileName, mimeType, params, trustAllHosts, chunkedMode]
);
旧的1.5版是:
Cordova.exec(
successCallback,
errorCallback,
org.apache.cordova.filetransfer ,
upload ,
[options]
);