> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://uploadcare.com/docs/llms.txt.

# File analysis on upload

> When uploading files to your project, we extract file data that you can use to your benefit.

When uploading files to your project, we can extract file data that you can use to your benefit:

* Basic file information, e.g. EXIF.
* Insights into its content.
* Optional file analyses (e.g. virus checking or object recognition).

You can use this data to [validate and moderate](/docs/moderation/) incoming files.

## File and content info

Right after the file is received by us, we can return to you information about the file and its content.
We also look inside it to identify the correct MIME type.

[API response](https://uploadcare.com/docs/api/rest/file/info) example:

```json
{
  "datetime_removed": null,
  "datetime_stored": "2018-11-26T12:49:10.477888Z",
  "datetime_uploaded": "2018-11-26T12:49:09.945335Z",
  "is_image": true,
  "is_ready": true,
  "mime_type": "image/jpeg",
  "original_file_url": "https://examples.ucarecd.net/22240276-2f06-41f8-9411-755c8ce926ed/pineapple.jpg",
  "original_filename": "pineapple.jpg",
  "size": 642,
  "url": "https://api.uploadcare.com/files/22240276-2f06-41f8-9411-755c8ce926ed/",
  "uuid": "22240276-2f06-41f8-9411-755c8ce926ed",
  "variations": null,
  "content_info": {
    "mime": {
      "mime": "image/jpeg",
      "type": "image",
      "subtype": "jpeg"
    },
    "image": {
      "format": "JPEG",
      "width": 500,
      "height": 500,
      "sequence": false,
      "orientation": 6,
      "geo_location": {
        "latitude": 55.62013611111111,
        "longitude": 37.66299166666666
      },
      "datetime_original": "2018-08-20T08:59:50",
      "dpi": [
        72,
        72
      ]
    }
  },
}
```

On uploading the file is assigned an attribute `is_image`.
If this attribute is `true`, then [processing operations](/docs/transformations/image/#image-transformations-list) can be applied to the file.

When processing high resolution (75+ MP) images, be aware of [limitations](/docs/cdn-operations/#limits).

## Optional data analysis

Currently it includes:

* [Virus scan data](/docs/security/malware-protection/)
* [Recognized objects on the image](/docs/object-recognition/)
* [Unsafe content moderation](/docs/unsafe-content/)

[API response](https://uploadcare.com/docs/api/rest/file/info) example:

```json
{
  "appdata": {
    "uc_clamav_virus_scan": {
      "data": {
        "infected": true,
        "infected_with": "Win.Test.EICAR_HDB-1"
      },
      "version": "0.104.2",
      "datetime_created": "2021-09-21T11:24:33.159663Z",
      "datetime_updated": "2021-09-21T11:24:33.159663Z"
    },
    "remove_bg": {
      "data": {
        "foreground_type": "person"
      },
      "version": "1.0",
      "datetime_created": "2021-07-25T12:24:33.159663Z",
      "datetime_updated": "2021-07-25T12:24:33.159663Z"
    },
    "aws_rekognition_detect_labels": {
      "data": {
        "LabelModelVersion": "2.0",
        "Labels": [
          {
            "Confidence": 93.41645812988281,
            "Instances": [],
            "Name": "Home Decor",
            "Parents": []
          },
          {
            "Confidence": 70.75951385498047,
            "Instances": [],
            "Name": "Linen",
            "Parents": [
              {
                "Name": "Home Decor"
              }
            ]
          },
          {
            "Confidence": 64.7123794555664,
            "Instances": [],
            "Name": "Sunlight",
            "Parents": []
          },
          {
            "Confidence": 56.264793395996094,
            "Instances": [],
            "Name": "Flare",
            "Parents": [
              {
                "Name": "Light"
              }
            ]
          },
          {
            "Confidence": 50.47153854370117,
            "Instances": [],
            "Name": "Tree",
            "Parents": [
              {
                "Name": "Plant"
              }
            ]
          }
        ]
      },
      "version": "2016-06-27",
      "datetime_created": "2021-09-21T11:25:31.259763Z",
      "datetime_updated": "2021-09-21T11:27:33.359763Z"
    }
  }
}
```