runtimeZero runtimeZero - 5 months ago 46
Javascript Question

Cloudinary javascript api.. handling errors

As per cloudinary js api, upload call looks like:

cloudinary.uploader.upload(fileLocation, function(result) {

There is no error returned in the callback. How do I capture the error ?


You can use the v2 version of the SDK, e.g.,:

    function(error, result) {console.log(result); });

Here's a reference: