> ## Documentation Index
> Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt
> Use this file to discover all available pages before exploring further.

# How to detect corrupted images


When you fetch images from a remote server, the success of the request depends, in part, on the remote server's availability and stability.

In case such disruptions occur, images can get truncated and appear broken when served.

Cloudinary can configure your account to return a boolean response key named `isCorrupt` so when you upload an asset and set the parameter `image_metadata` set to `true`, it returns that key as part of the upload response.

> **NOTE**: This is applicable only for JPEG images.

You can then apply logic based on this response key to handle re-uploading and overwriting the existing corrupted image.

If you'd like to include this response key in your upload responses (currently for [paid plans](https://cloudinary.com/pricing) only), please [open a support request](https://support.cloudinary.com/hc/en-us/requests/new).

