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

mime_type

Table of contents

Description:

This key defines what format an image is converted to prior to upload.

Appears in:
├── _inputs
│   └── *
│       ├── Rich Text Input
│       │   └── options
│       │       └── mime_type
│       ├── File Input
│       │   └── options
│       │       └── mime_type
│       └── URL Input
│           └── options
│               └── mime_type
└── _editables
    ├── content
    │   └── mime_type
    ├── block
    │   └── mime_type
    └── image
        └── mime_type
Type:
string
Allowed values:
image/jpeg
image/png
image/webp
Examples:

In this example, we have configured an Image Input to convert images to WebP format prior to upload.

Copied to clipboard
_inputs:
  hero_image:
    type: image
    options:
      mime_type: image/webp
{
  "_inputs": {
    "hero_image": {
      "type": "image",
      "options": {
        "mime_type": "image/webp"
      }
    }
  }
}
Open in a new tab