This support forum is no longer in use. Please use the Cloudinary Community at to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

How To Provide Users With Useful Cloudinary Exception Response in Rails?


1 comment

  • Avatar
    Itay Taragano

    Hi Alexander,

    If you wish to keep the uploads being performed on the server-side, then you can use something like the following:

    upload = Cloudinary::Uploader.upload(self.picture_link.to_s)
    rescue CloudinaryException => e

    #Perform handling code, for example:

    msg_to_display = e.message

    Alternatively, you might want to consider performing the uploads client-side, i.e., uploading images  directly from the browser to Cloudinary. This way, you can use our jQuery library to validate the uploads on the client-side, before uploading the file to Cloudinary.

    Comment actions Permalink

Post is closed for comments.