Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mime-type set to application/octet-stream when uploading .glb files #2844

Open
dim-anis opened this issue May 9, 2024 · 0 comments
Open
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@dim-anis
Copy link

dim-anis commented May 9, 2024

Describe the bug
Attempting to upload a .glb file results in an error. mime-type defaults to application/octet-stream instead of model/gltf-binary.

To Reproduce
Steps to reproduce the behavior:

  1. Extend assetOptions.permittedFileTypes with model/gltf-binary or .glb
  2. Upload a .glb file through admin client
  3. Errors with "mime-type application/octet-stream is not allowed"

Expected behavior
mime-type should be set to model/gltf-binary.

Environment (please complete the following information):

  • @vendure/core version: 2.2.4
  • Nodejs version: 20.12.0
  • Database (mysql/postgres etc): postgres, local asset storage
@dim-anis dim-anis added the type: bug 🐛 Something isn't working label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants