Configuration

Below is a list of available configuration with default values:

"example" => [
    "type"   => "anomaly.field_type.file",
    "config" => [
        "default_value" => null,
        "folders"       => [],
        "max"           => null,
        "mode"          => "default",
    ]
]
Configuration
Key Example Description
default_value 12 The default value defined as a file ID.
folders `["images", "slides"]` The slugs, paths, or IDs of allowed file folders. Defaults to all folders.
max 10 The max size in megabytes allowed for uploads. Defaults to folder configured max then server max.
mode `default` The user input mode. Available options are `default`, `select`, or `upload`.