Configuration

Below is the full configuration available with defaults values:

"example" => [
    "type"   => "anomaly.field_type.upload",
    "config" => [
        "folder" => null,
        "image"  => false,
        "mimes"  => [],
        "max"    => null,
    ]
]
Configuration
Key Example Description

folder

"images"

The slug or ID of the upload folders.

image

true

Whether to only allow image uploads or not.

mimes

["jpg", "jpeg", "png"]

The allowed file types to upload.

max

2

The max upload size in megabytes. Defaults to folder max which may default to system max if not specified.