Reputation: 2797
Pretty new to tabris-js, however so far very impressed at the speed and ease of getting a native mobile app running.
I am playing with the camera function of cordova.. since there is a tabris-js example, that part is fine. However, I am trying to utilise the File/File-Transfer plugins from cordova too..
Since you don't seem to import/include the cordova plugins (well, the ones in the examples), all I have done is use the cordova CLI to include the file/file-transfer plugins (adding them to my config.xml also).
Unfortunately, when I come to use say:
var options = new FileUploadOptions();
to specify the file upload options (or indeed the var ft = new FileTransfer();), I get an error saying FileUploadOptions isn't defined.. this is when I am using the localhost tabris-js app by the way.
Any ideas on how (or even if??) to use the File/File-Transfer plugin??
Many thanks in advance.
Upvotes: 0
Views: 305
Reputation: 447
There a restrictions regarding the file plugin right now. The Tabris.js team is working on it today.
Upvotes: 2