Bug: file browser upload not limited to .gcode #59
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Oversight by me. File browser upload should only allow .gcode
I was able to upload a jpg 🤦
Bug: file browser upload not limited to. gcodeto Bug: file browser upload not limited to .gcodeFixed in v0.9.25, thanks @gangoke! 👍
The
accept=".gcode,.bgcode"attribute on the file picker was only a hint and got bypassed by drag & drop entirely. Uploads are now validated both client-side and (authoritatively) server-side in the upload endpoint — only.gcode,.gcode.3mf,.3mfand.bgcodeare accepted, anything else is rejected with a 400. Verified that a JPG now gets refused while a real .gcode still uploads fine.I don;t think we can print using a .3mf can we?
Good catch @gangoke — you are right. The Kobra X cannot print
.3mffiles directly, so allowing them to be uploaded was misleading at best. The server-side validation has been tightened to only accept.gcodeand.bgcode;.3mfand.gcode.3mfare now rejected. Will ship with the next release.