Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
skamansam opened this issue Jun 14, 2022 · 4 comments
Closed

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

skamansam opened this issue Jun 14, 2022 · 4 comments
Labels
bug Something isn't working Project: v8.0.0

Comments

@skamansam
Copy link

skamansam commented Jun 14, 2022

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.

@skamansam skamansam added the bug Something isn't working label Jun 14, 2022
@skamansam
Copy link
Author

I finally found the issue - it was because some config was in frontmatter.json and soem was in the VSCode settings file. Moving all of them to the frontammter.json file fixed the issue. Maybe this can be kept here in case someone else runs into this problem?

@estruyf
Copy link
Owner

estruyf commented Jun 14, 2022

Thanks @skamansam I spotted another issue when I checked your configuration so thank you for that 👍

@skamansam
Copy link
Author

@estruyf Thank you! I've been using Front Matter for about a year and a half and it has been amazing. Thank you for such an awesome product!

@estruyf
Copy link
Owner

estruyf commented Jun 15, 2022

Thank you @skamansam these kinds of messages make me happy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Project: v8.0.0
Projects
None yet
Development

No branches or pull requests

2 participants