Feat: gCode Web Upload and Download #32

Merged
viewit merged 4 commits from gangoke/KX-Bridge-Release:web-upload-download into master 2026-05-27 23:37:41 +02:00
Contributor

Upload

Drag and Drop or Press to Upload
image.png

File upload triggers print bar
image.png

Warning dialog for web uploaded files. Web uploaded gcode have a flag. Flag is removed when warning is confirmed. So it will only appear once per file. This warninig can be disabled globally in settings. Flags will stay persistent between setting disable/enabled.
image.png

Setting
image.png

Download

Press download button to download .gcode to your device

image.png
# Upload Drag and Drop or Press to Upload <img width="537" alt="image.png" src="attachments/20ebce52-4570-4d42-af5c-a2dd35810adc"> File upload triggers print bar <img width="603" alt="image.png" src="attachments/881ff70c-2e58-4db2-acab-65488ff13fbe"> Warning dialog for web uploaded files. Web uploaded gcode have a flag. Flag is removed when warning is confirmed. So it will only appear once per file. This warninig can be disabled globally in settings. Flags will stay persistent between setting disable/enabled. <img width="915" alt="image.png" src="attachments/ab1851db-ea6b-4fab-8637-23f6c081df7b"> Setting <img width="349" alt="image.png" src="attachments/b8a80cbb-6928-4641-826c-d5d83e659772"> # Download Press download button to download .gcode to your device <img width="880" alt="image.png" src="attachments/d028d379-03d2-4adc-8deb-6a27af408d12">
gangoke added 4 commits 2026-05-25 04:48:27 +02:00
Author
Contributor

Looking to the future for printing from mobile. Just need to find a mobile slicing solution that can setup a Kobra X profile

Looking to the future for printing from mobile. Just need to find a mobile slicing solution that can setup a Kobra X profile
Owner

Thanks @gangoke — really nice work! Picked this up into the dev repo and tested end-to-end (upload sets web_unverified=true, verify clears it, download works with proper headers, setting toggles the dialog gate). Two small adjustments before merging:

  1. Hardened the Content-Disposition header in handle_kx_file_download with RFC5987 filename*=UTF-8… plus an ASCII fallback, so filenames with special characters or quotes can't escape the header.
  2. Translated the verify dialog strings in LANG_DE (msg/confirm/abort) — the English versions remain in LANG_EN.

Merged manually into the dev repo (viewit/KX-Bridge master, commit 7c834bc) — it lands in the release repo automatically with the next release.sh run. Closing this PR as manually-merged.

Thanks @gangoke — really nice work! Picked this up into the dev repo and tested end-to-end (upload sets `web_unverified=true`, verify clears it, download works with proper headers, setting toggles the dialog gate). Two small adjustments before merging: 1. Hardened the `Content-Disposition` header in `handle_kx_file_download` with RFC5987 `filename*=UTF-8…` plus an ASCII fallback, so filenames with special characters or quotes can't escape the header. 2. Translated the verify dialog strings in `LANG_DE` (msg/confirm/abort) — the English versions remain in `LANG_EN`. Merged manually into the dev repo (`viewit/KX-Bridge` master, commit `7c834bc`) — it lands in the release repo automatically with the next `release.sh` run. Closing this PR as manually-merged.
viewit closed this pull request 2026-05-27 23:27:20 +02:00
viewit reopened this pull request 2026-05-27 23:37:04 +02:00
viewit merged commit 42898c385c into master 2026-05-27 23:37:41 +02:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: viewit/KX-Bridge-Release#32
No description provided.