Skip to content

user/config/media.yaml #943

@ritchiedalto

Description

@ritchiedalto

After the upgrade to 1.1.1, a custom plugin that I wrote stopped working. It pulls in an attached .csv file and does some stuff with the data. When I set this up I had to put...

csv:
  type: file
  thumb: media/thumb-xml.png
  mime: text/css

...in the user/config/media.yaml file for it to allow dropping of a .csv file onto a page in the media section. After this upgrade my plugin stopped working, I checked the user/config/media.yaml file and the above settings were in there. But in the admin ui, on the media tab, there was no entry for .csv So I entered one there in the UI, saved, and my plugin worked again. The entry still exists in user/config/media.yaml just the same as before.

Forgive the insanity of attaching this image, but I didnt know how to give you the diff as text. This shows the media.yaml file after upgrade to 1.1.1 compared with after I added the .csv settings via the Admin UI.

media-yaml-grav-git-diff

Thought I'd mention this, I'm thinking it's a bug to break stuff like this, and someone else might need to know this info.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions