Prusa-Link-Web icon indicating copy to clipboard operation
Prusa-Link-Web copied to clipboard

Filenames with % character not valid

Open mix579 opened this issue 3 years ago • 7 comments

Pardon me if I'm missing something obvious as I'm new to PrusaLink/PrusaConnect. File output is set to [input_filename_base]{printer_model}{filament_type[0]}[temperature]C[layer_height]mm_[fill_density]_[print_time].gcode in all my profiles. When [fill_density] is filled in, it results in adding something like "_10%" to the filename. I never had an issue with that while using Octoprint but when I try to send that file from Prusaslicer or upload to PrusaConnect, I get an "invalid file name" error. I can correct it by deleting the % character. But what's particularly annoying is that the percent character is actually added in the first place by the slicer itself, not by me. Can the % character be added to the list of allowed characters?

mix579 avatar Oct 20 '22 23:10 mix579

Just to add to my comment, this is NOT an issue with PrusaLink on the Mini! It accepts the % character, whether send from Prusaslicer or by file upload.

mix579 avatar Oct 29 '22 22:10 mix579

Thank you for reporting this. There is a number of special characters that may cause unintended behaviors on the printer or on the Prusa Link side. Sometimes they are quite uncommon characters, and sometimes characters are rather normally used. We are taking notes, thank you again.

Michele Moramarco Prusa Research

Prusa-Support avatar Nov 05 '22 13:11 Prusa-Support

Here is an update. We are putting together a list of "forbidden characters" that may be a cause of anomalies and incompatibilities in Prusa Link if included in file name or path. So far the listed characters are: \\, ?, ", %, ¯, °, #, ˇ. This list may grow or be modified in the future as our developers identify more problematic characters or act to improve Prusa Link in these regards.

These characters may have a specific meaning for Prusa Link and therefore they should be avoided to prevent problems for now. We are still collecting information and your feedback is most valuable.

Michele Moramarco Prusa Research

Prusa-Support avatar Nov 11 '22 12:11 Prusa-Support

That's fine to have a list of excluded characters but a) it should be consistent across Mk3S and Mini implementations of PrusaLink b) output variables in Prusaslicer should be modified to NOT include such characters (I know infill percentage does, and I suspect others do, too. Maybe replace the character % with the letters pct).

mix579 avatar Nov 11 '22 13:11 mix579

Sure. The issue will stay open for now.

Michele Moramarco Prusa Research

Prusa-Support avatar Nov 24 '22 12:11 Prusa-Support