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

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

I added
code
if(value)
return value;
/code

Before trying to save to database in the cordova request service. Now the photo taken from the camera is able to save to the database, but the photo taken from the gallery will not save. I notice camera photos ends with .png, gallery photos ends with .png?modifed like xxxx.png?modifed12234243232. I tried editing the JavaScript that came with the plugin to strip the 'modifedxxx' text from the end so it can read the image type and then save the complete fileUri. Still does not work. Can someone please help???

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

Hi Adam - Could you please clarify, what libraries version are you using in App Settings and on what device you are testing with what OS version?

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

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

I am using library 2.2 and I am testing with android 5.0 and 4.2

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

Dear Adam,

Please specify exact steps to test the problem, I see there is login functionality, please tell us credentials.

Return to “Issues”