Skip to content

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