Cordova / PhoneGap Upload Error on Windows Phone 8.0 -


cordova / phonegap upload error on windows phone 8.0

introduction

hello everyone, i'm working cordova 3.6.3 , windows phone 8.0
have piece of code works on android 4. code uploading image server, using cordova-plugin-file-transfer (version 0.5.0)

code

var options = new fileuploadoptions();  options.filekey = "newcommentmailform"; options.filename = attachedimage.filename; options.chunkedmode = true;  var params = {}; params.imageuid = attachedimage.imageuid;  options.params = params;  var filetransfer = new filetransfer();  filetransfer.upload(   attachedimage.imageuri,   encodeuri(webapi_server + "/api/upload"),   function (fileuploadresult) {     app.onsendimagesuccess(fileuploadresult, attachedimage);   },   app.onsendimagefail,   options,   true);   onsendimagesuccess: function (fileuploadresult, attachedimage) { // success },  onsendimagefail: function (filetransfererror) {     log("code = " + filetransfererror.code);     log("source " + filetransfererror.source);     log("target " + filetransfererror.target); }, 

error

in windows phone 8.0 i'm getting error filetransfererror.file_not_found_err (code = 1) after upload method called.

the path selected file upload comes navigator.camera.getpicture() method , "x-wmapp0:/././//captureimagescache/wp_20150213_003.jpg"

question

what correct path accesing image want upload? path should "fileurl" parameter of upload method (cordova-plugin-file-transfer)

thanks!
gustavo

the trick replace "x-wmapp0:/./." empty string.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -