- Description:
This key defines the maximum file size in kB that CloudCannon will allow you to upload.
When configured, CloudCannon will prevent you from saving your changes until you select a valid file size, or discard your unsaved changes.
Value can be any positive integer.
This key has no default.
This key is available for File and URL Inputs.
- Appears in:
└── _inputs └── * ├── File Input │ └── options │ └── max_file_size └── URL Input └── options └── max_file_size- Type:
number- Examples:
In this example, we want our team to upload an image using the
feature_imageInput. This Input limits you to a maximum file size of 750 kB.Copied to clipboard_inputs: feature_image: type: image comment: Select the feature image for the banner. options: max_file_size: 140{ "_inputs": { "feature_image": { "type": "image", "comment": "Select the feature image for the banner.", "options": { "max_file_size": 140 } } } }