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

fix(FileSystem): filename on metadata response #1600

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

pedrolamas
Copy link
Member

When a new file is created/uploaded, we check if the root is "gcodes" and if the file is one of the gcode file types, and if so, we ask for the file metadata from Moonraker.

The problem is that the filename on the response is a path, not just a filename, so it can includes a folder tree!

This fixes the issue by overwriting the filename to make sure it is just a file name.

Fixes #1599

@pedrolamas pedrolamas added the GH - Bug Something isn't working label Feb 14, 2025
@pedrolamas pedrolamas added this to the 1.32.3 milestone Feb 14, 2025
@pedrolamas pedrolamas merged commit 35b6447 into fluidd-core:develop Feb 14, 2025
5 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/fix-1599 branch February 14, 2025 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GH - Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

duplicated subfolder when uploading from API
1 participant