Closed bhavincb closed 6 years ago
it was my mistake , by mistake i had set non string value to parameters which was causing this issue. i had solved it by doing below
let data = [
{ name: filename, filename: fileUri.toString(), mimeType: 'image/'+mimetype },
{ name:'userId', value:this.user.user.id.toString()},
{ name:'grpId', value:grp.id.toString()}
];
when i'm using above code for file upload with nativescript-telegram-image-picker plugin. and path is set to what i'm getting from plugin
i'm getting this error
Error: Cannot convert object to I at index 1
i also tried using nativescript camera plugin also
but still getting the same error.