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.

failed to connect ( is the api server is down ? or not ?



  • Avatar
    Ismail Zakky

    already Found the answer. that errors happen because my app running behind proxy.
    now im trying to set proxy parameter when calling upload api, but it doesnt change anything.
    is this the right way to set proxy parameter when calling upload api?

    public Map uploadIMage(MultipartFile multipartFile) throws IOException {
    File convFile = new File(multipartFile.getOriginalFilename());
    FileOutputStream fileOutputStream = new FileOutputStream(convFile);
    Map uploadResult = cloudinary.uploader().upload(convFile,ObjectUtils.asMap("proxy",""));

    return uploadResult;
    Comment actions Permalink
  • Avatar
    Aditi Madan

    Hi Ismail,


    Proxy tells Cloudinary to upload resources from remote URLs through the given proxy. Format: http://hostname:port.

    I see you are passing a file, for the proxy you need to pass the URL. In your case, I don't think you need a proxy, you can simply upload your file.


    Please let me know if you have any questions.


    Comment actions Permalink

Post is closed for comments.