Redactor Image Upload, Statamic v2

I've been looking into how to enable image and file upload for Redactor in Statamic V2.

The documentation isn't clear and any forum posts are from 2014-2016.

If you want images and files enabled:

  1. Add "image" and "file" to your "buttons" settings in site/settings/system.yaml under redactor: buttons. Like so:
buttons:
...
- image
- file
  1. This is the important part. Before, you had to add "image_dir" or "file_dir" to your fieldset declaration, but that doesn't seem to work anymore. You must add these to the Redactor settings object in system.yaml:
    settings:
      buttons:
        ...
        - image
        - file
      fileUpload: assets/file/
      imageUpload: assets/img/
Answered by Mikael Staer!
>>>>>>> Answered <<<<<<<
5 Replies
3 Followers