Open dim-anis opened 6 months ago
Hi,
Are you able to provide a sample .glb file I can use for testing?
Sure, @michaelbromley! Github doesn't support attaching .glb
files, so here is a link to gdrive.
https://drive.google.com/file/d/1Q904UoC-MsH1UiQ2QdddNjOsjFel1bXk/view?usp=sharing
Thanks. I can reproduce this using the provided file.
I think this may be a current limitation of browsers, according to:
I think for now you may need to accept application/octet-stream
for this to work
This is happening with all file types with the s3 plugin as well. png, jpeg, etc all show up as application/octet-stream.
@jawngee we are using the s3 plugin (with Minio) in prod in several projects and have not run into this. Are you able to provide steps to reproduce from a clean install?
@michaelbromley
Yes, see here:
https://github.com/vendure-ecommerce/vendure/issues/3184#issuecomment-2459185222
A basic vendure install plus minio running in docker with the config in the linked comment.
This is how it appears in minio's console:
Describe the bug Attempting to upload a
.glb
file results in an error.mime-type
defaults toapplication/octet-stream
instead ofmodel/gltf-binary
.To Reproduce Steps to reproduce the behavior:
assetOptions.permittedFileTypes
withmodel/gltf-binary
or.glb
.glb
file through admin clientapplication/octet-stream
is not allowed"Expected behavior
mime-type
should be set tomodel/gltf-binary
.Environment (please complete the following information):