☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

disable_upload_file

Table of contents

Description:

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:
└── _inputs
    └── *
        ├── File Input
        │   └── options
        │       └── disable_upload_file
        └── URL 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