Image

If you want to allow users to upload images in  postConfig, pageConfig, authorConfig or tagConfig options, you can use the Image field. This simple field type allows easy image uploads for your configuration needs.

Here is an example of how to use it: 

{
    "name": "additionalImage",
    "label": "Additional image",
    "value": "",
    "type": "image"
}
Image Control for post and page config

To upload images directly to the theme, it is recommended to use the Image Upload and Small Image Upload controls.

Create your first website with Publii

Join thousands of creators who chose independence. Create content locally and publish lightning-fast, secure websites on your own terms.

Download Publii

Free and open source. Windows, macOS and Linux.

Read the getting started guide