adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

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

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.

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

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

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

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!

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

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

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

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

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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?

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

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

I do not have a js file name that

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

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

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

Return to “Issues”