runtimeZero runtimeZero - 1 year ago 97
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 ?

Answer Source

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

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

Here's a reference:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download