Lepozepo / cloudinary

MIT License
94 stars 42 forks source link

TypeError: undefined is not an object (evaluating '_cloudinary.after.update') #15

Open applecat opened 9 years ago

applecat commented 9 years ago

When try to use this code client side:

_cloudinary.after.update(function(user,file){
    if(file.percent_uploaded === 100 && !file.uploading){
        console.log(file);
    }
})

got this error:

TypeError: undefined is not an object (evaluating '_cloudinary.after.update')

Seems to be _cloudinary object doesn't have .after attribute/method:

[Log] Object (admin.js, line 1)
_collection: Object
_connection: null
_insecure: undefined
_makeNewID: function () { // 71
_name: null
_restricted: false
_transform: null
_validators: Object
__proto__: Object