Skip to content

Canvas insert and canvas file filter extension problem #4048

Closed

Description

@catosp

What happened

When I chose to insert canvas from computer, it show that to insert .STEP, .3MF, .STL file, etc, not image. Is the same problem as insert->decal. Also, when I open a .png file it show me the following error (see image below): "design file is not UTF-8 JSON".
Also, what is the difference between "open from computer" and "insert from computer"?

Image Image

Steps to reproduce

Insert->Canvas->Insert from computer

SolidCraft version and OS

0.18.2, web version

Screenshots or recording

No response

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added
    needs-triage
    on Oct 21, 2026
  3. raykholo commented on Oct 21, 2026

    @raykholo
    Contributor

    Confirmed in the code on main@e9490093: in the web version, Canvas and Decal can't get an image from your computer.

    Cause: Canvas and Decal ask for a PNG or JPEG (crates/ui-egui/src/sketch_tools.rs:325). The web version sends only design files to the browser's file dialog. For anything else, including images, it opens its general files window and hands nothing back to Canvas (apps/solidcraft-web/src/main.rs:582). That window's buttons are for designs and models, which is why it lists STEP, 3MF and STL.

    The UTF-8 error: picking the PNG with Open from computer opens it as a SolidCraft design, and a PNG isn't one, hence "design file is not UTF-8 JSON". I get the same message on the command line by opening a PNG with doc.open, while the same PNG inserted as a Canvas loads fine.

    Open vs Insert from computer (apps/solidcraft-web/src/main.rs:243):

    • Open from computer opens a design.
    • Insert from computer adds a STEP, 3MF or STL file's bodies to the design that is open (into an empty design it simply opens the file).

    Neither one is meant for images. The fix is for the image picker to go to the browser's file dialog the way design files do.

  4. added
    in progress
    on Oct 21, 2026
  5. github-actions commented on Oct 21, 2026

    @github-actions
    Contributor

    Claimed by @raykholo through #4054. The claim lapses after 14 days without pushes.

  6. modified the milestone: on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugin progressneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions