Recent searches

in

disable_upload_file

On this page

This key toggles whether CloudCannon will disable the context menu option and the drop area for uploading files.

Setting this key to true will disable the context menu option and prevent uploading file through drag-and-drop in a File Input.

Appears in#

├── URL Input
│   └── options
│       └── disable_upload_file
└── _inputs
    └── *
        └── File Input
            └── options
                └── disable_upload_file

Type#

boolean

Default value#

false

Examples#

In this example, CloudCannon will disable the option to upload a file in the context menu and prevent uploading file through drag-and-drop in a File Input.

Copied to clipboard
_inputs:
  image:
    type: image
    options:
      disable_upload_file: true
{
  "_inputs": {
    "image": {
      "type": "image",
      "options": {
        "disable_upload_file": true
      }
    }
  }
}
Open in a new tab