---
title: "Disable file upload"
description: "The allowed capture sources to be used for a document scan can be configured to disable file uploads. The camera capture source allows the user to live capture an ID document. The file capture source allows the user to upload an already captured ID document. The setting is not required to send with the request. By default, a user is allowed both capture sources."
canonical: "https://docs.cm.com/verification/id-scan/use-cases/disable-file-uploads"
---

# Disable file upload

> The allowed capture sources to be used for a document scan can be configured to disable file uploads. The camera capture source allows the user to live capture an ID document. The file capture source allows the user to upload an already captured ID document. The setting is not required to send with the request. By default, a user is allowed both capture sources.

Source: https://docs.cm.com/verification/id-scan/use-cases/disable-file-uploads

The allowed capture sources to be used for a document scan can be configured to disable file uploads. The camera capture source allows the user to live capture an ID document. The file capture source allows the user to upload an already captured ID document. The setting is not required to send with the request. By default, a user is allowed both capture sources.

```text title="Request"
POST https://api.cm.com/id-scan/v1/transactions
```

```text title="Request headers"
Content-Type: application/json
Authorization: Bearer GENERATED_TOKEN_HERE
```

```json title="Request body"
{
    "tasks": [
        "document_scan"
    ],
    "settings": {
        "documentScan": {
            "captureSources": [
                "camera",
                "file"
            ]
        }
    }
}
```

For a full list of all options see the [API reference](https://docs.cm.com/verification/id-scan/v1/api-reference)
