Page 4 of 5

Wrong type for parameter "undefined" of FileTransfer.upload: Expected String

Posted: Wed Sep 24, 2014 4:27 am
by adam griffin

I tried placing the code where you say and nothing seems to work. I also tried varies other methods and nothing seems to work. I have shared my app with appery. The app name is EB. Please help me solve this, its been weeks and still no solution. My code is on the "SignUp_Profile_Page" page and in the " temp_Upload" javascript file.


Wrong type for parameter "undefined" of FileTransfer.upload: Expected String

Posted: Wed Sep 24, 2014 4:28 am
by adam griffin

Nothing seems to work.


Wrong type for parameter "undefined" of FileTransfer.upload: Expected String

Posted: Fri Sep 26, 2014 4:31 pm
by adam griffin

Its been 3 days and no reply. This problem still exists.


Wrong type for parameter "undefined" of FileTransfer.upload: Expected String

Posted: Fri Sep 26, 2014 9:09 pm
by Kateryna Grynko

Hi Adam,

We are very sorry for not returning to you. Unfortunately we still don't have an answer. I asked our developers to check this when they are available. Thank you for your patience, we appreciate it!


Wrong type for parameter "undefined" of FileTransfer.upload: Expected String

Posted: Mon Sep 29, 2014 3:52 pm
by Evgene Karachevtsev

Hello Adam,

Sorry for delay. You should remove file temp_Upload.
And for creating ft3 add the code on success event mobilecamera4. At the top after
pretry {/pre


Wrong type for parameter "undefined" of FileTransfer.upload: Expected String

Posted: Mon Sep 29, 2014 4:02 pm
by Evgene Karachevtsev

Adam,

And by the way, this part also looks strange
pretoast("Profile Called: "+localStorage.getItem("TEMP_profile_url"));
//var ft = new FileTransfer();
ft3.upload(localStorage.getItem("TEMP_profile_url"), uri, win, fail, options);

toast("Called " Background");
//var ft2 = new FileTransfer();
ft3.upload(localStorage.getItem("TEMP_background_url"), uri, win2, fail, options);/pre
Perhaps there should be some validation to call one upload or another


Wrong type for parameter "undefined" of FileTransfer.upload: Expected String

Posted: Wed Jun 03, 2015 4:46 pm
by adam griffin

Sorry it took me so long to respond. I am trying to use the Upload File to Database plugin now. I get this error in the weinre console.

processMessage failed: Error: TypeError: Cannot read property 'length' of undefined
processMessage failed: Stack: TypeError: Cannot read property 'length' of undefined
at file:///android_asset/www/startScreen_alt.js:1:17759
at Object.cordova.callbackFromNative (file:///android_asset/www/files/resources/lib/cordova.js:1:5099)
at processMessage (file:///android_asset/www/files/resources/lib/cordova.js:1:17245)
at androidExec.processMessages (file:///android_asset/www/files/resources/lib/cordova.js:1:17959)
at instrumentedCode (http://debug.appery.io/target/target-...)
processMessage failed: Message: F07 PushNotification1986926721 sInvalid action


Wrong type for parameter "undefined" of FileTransfer.upload: Expected String

Posted: Thu Jun 11, 2015 1:59 pm
by Serhii Kulibaba

Adam, could you open file (startScreen_alt.js) on the line which causes an error "Cannot read property 'length' of undefined " and send it to us?


Wrong type for parameter "undefined" of FileTransfer.upload: Expected String

Posted: Thu Jun 11, 2015 4:58 pm
by adam griffin

I do not have a js file name that


Wrong type for parameter "undefined" of FileTransfer.upload: Expected String

Posted: Thu Jun 11, 2015 7:06 pm
by adam griffin

Every-time I call the camera service this message appears:

processMessage failed: Error: TypeError: Cannot read property 'length' of undefined
processMessage failed: Stack: TypeError: Cannot read property 'length' of undefined
at file:///android_asset/www/startScreen_alt.js:1:17692
at Object.cordova.callbackFromNative (file:///android_asset/www/files/resources/lib/cordova.js:1:5099)
at processMessage (file:///android_asset/www/files/resources/lib/cordova.js:1:17245)
at androidExec.processMessages (file:///android_asset/www/files/resources/lib/cordova.js:1:17959)
at instrumentedCode (http://debug.appery.io/target/target-...)
processMessage failed: Message: F07 PushNotification879343 sInvalid action