-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: $cordovaTransfer.upload is not a function #357
Comments
Hey there, This plugin (and a few others) is instance based. You need to do something like the following: var transfer = new $cordovaTransfer();
transfer.upload(...); |
Hi @ihadeed thank you for the answer. |
@mlynch can you have a look at this when you get a chance? |
Ah, perhaps the instance based stuff isn't correctly abstracted for ng1... |
@felipetoffolo1 can you try to use the plugin via the global variable var transfer = new IonicNative.Transfer();
transfer.upload(...) |
@ihadeed tried your latest example, but doesn't work. No error in console, but nothing happened too |
The constructor isn't getting carried over, fixing now |
HI,
i have a question.
I'm trying to use ionic native in my Ionic 1 project.
but when it try
$cordovaTransfer.upload()
i receive the errro
Uncaught TypeError: $cordovaTransfer.upload is not a function
here is my code
` cordovaUpload: function (file, objectType, fileName, chunkMode) {
The text was updated successfully, but these errors were encountered: