I’m still getting this error. Did you find a solution? I’m only getting this error if try to upload a photo from the gallery.
If i try to upload a photo from the camera it succeeds…
My logcat:
D/FileTransfer( 4987): upload cdvfile://localhost/content/media/external/images/media/9338 to https://XXXXXXXXXXX
D/FileTransfer( 4987): fileKey: file
D/FileTransfer( 4987): fileName: 9338
D/FileTransfer( 4987): mimeType: image/jpeg
D/FileTransfer( 4987): params: {}
D/FileTransfer( 4987): trustEveryone: false
D/FileTransfer( 4987): chunkedMode: true
D/FileTransfer( 4987): headers: {“Authorization”:“XXXXXX”}
D/FileTransfer( 4987): objectId: 2
D/FileTransfer( 4987): httpMethod: POST
D/StatusBarManagerService( 921): manageDisableList userId=0 what=0x0 pkg=WindowManager.LayoutParams
E/ViewRootImpl( 4987): sendUserActionEvent() mView == null
D/InputMethodManagerService( 921): windowGainedFocus mCurrentFocusedUserId - 0 and mSecureKeypadEnabled-false
E/PluginManager( 4987): Uncaught exception from plugin
E/PluginManager( 4987): java.lang.IllegalStateException: Tried to perform an IO operation on the WebCore thread. Use CordovaInterface.getThreadPool() instead.
E/PluginManager( 4987): at org.apache.cordova.CordovaResourceApi.assertBackgroundThread(CordovaResourceApi.java:394)
E/PluginManager( 4987): at org.:apache.cordova.CordovaResourceApi.mapUriToFile(CordovaResourceApi.java:150)
E/PluginManager( 4987): at org.apache.cordova.file.ContentFilesystem.filesystemPathForURL(ContentFilesystem.java:201)
E/PluginManager( 4987): at org.apache.cordova.file.FileUtils.remapUri(FileUtils.java:229)
E/PluginManager( 4987): at org.apache.cordova.PluginManager.remapUri(PluginManager.java:470)
E/PluginManager( 4987): at org.apache.cordova.CordovaResourceApi.remapUri(CordovaResourceApi.java:137)
E/PluginManager( 4987): at org.apache.cordova.filetransfer.FileTransfer.upload(FileTransfer.java:288)
E/PluginManager( 4987): at org.apache.cordova.filetransfer.FileTransfer.execute(FileTransfer.java:183)
E/PluginManager( 4987): at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:95)
E/PluginManager( 4987): at org.apache.cordova.PluginManager.exec(PluginManager.java:130)
E/PluginManager( 4987): at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
E/PluginManager( 4987): at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
E/PluginManager( 4987): at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
E/PluginManager( 4987): at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53)
E/PluginManager( 4987): at android.os.Handler.dispatchMessage(Handler.java:102)
E/PluginManager( 4987): at android.os.Looper.loop(Looper.java:145)
E/PluginManager( 4987): at android.os.HandlerThread.run(HandlerThread.java:61)