Skip to content

Issue: media is not detected and is removed upon refresh #358

@skamansam

Description

@skamansam

Describe the bug
I have several assets in the /static folder, including sub-folders. When going to the media view, nothing is listed. When I "Create a new folder" that points to the /static folder, the images in that folder show up, but not the ones in the sub-folders. However, when I click the refresh button, they all disappear. Dragging and dropping the folder from the file view only opens up a new editor with that folder as the workspace.

To Reproduce
Steps to reproduce the behavior:

  1. Init frontmatter in an existing project.
  2. Open the frontmatter dashboard
  3. click on the media tab

Screencast
frontmatter-media-issue

Expected behavior
All media in the project is shown. Media dragged onto the media view should be created in the folder specified by frontMatter.content.publicFolder.

Desktop (please complete the following information):

  • OS: Fedora Linux 36
  • Browser Brave
  • Version 1.40.91 Chromium: 102.0.5005.78 (Official Build) beta (64-bit)

Additional context
The project I am using is at https://github.com/skamansam/skamansam.github.io/tree/svelte (make sure it's the svelte branch). All the frontmatter config and data should be there as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions