Skip to content

[BUG] Font file imports give MIME type: "" (blank string) #186

Description

@InternetAstronaut

Describe the bug
It seems that font imports fail on Windows platforms. I have noticed that the software reports:

importFile(): Could not import file google.ttf, filetype: "" is not supported.

To reproduce
Steps to reproduce the behavior:

  1. Click and try to import a TTF file using the OS and browser
  2. See vague error (could not import FILENAME)
  3. Open the console
  4. See error

Expected behavior
A FontAsset should be created and the font should be usable.

Screenshots
Image

Editor version
Both 1.19.4 and 1.19.3 have the same issue.

Device

  • Hardware: PC
  • OS: Windows 11
  • Browser: Chrome
  • Version: 151.0.7922.108 (Official Build) (64-bit)

Do you have a suggested solution to this issue? (ex. has another program fixed this bug a certain way? Are you familiar with where in the code base someone would need to fix this issue?)
Maybe we should add filename-based extension checks.

Additional context
This has been discussed on the forums.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions