-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
mime-type
set to application/octet-stream
when uploading .glb
files
#2844
Comments
Hi, Are you able to provide a sample .glb file I can use for testing? |
Sure, @michaelbromley! Github doesn't support attaching 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 |
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? |
Yes, see here: A basic vendure install plus minio running in docker with the config in the linked comment. |
@michaelbromley Thanks! |
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):
The text was updated successfully, but these errors were encountered: