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

Standard MIME type for a Draco File? #761

Open
william-silversmith opened this issue Oct 29, 2021 · 6 comments
Open

Standard MIME type for a Draco File? #761

william-silversmith opened this issue Oct 29, 2021 · 6 comments

Comments

@william-silversmith
Copy link

william-silversmith commented Oct 29, 2021

Hi,

I was wondering what the right way to designate a file as draco compressed on cloud storage. Would that be Content-Encoding: draco with Content-Type: model/mesh or would it be something more like Content-Type: model/mesh+draco? I've seen one website recommend Content-Type: application/x.draco but that seems too informal for a relatively popular encoding type.

EDIT: Did some reading here: KhronosGroup/glTF#412 Seems model/mesh+draco would probably not be allowed. At least model/x.draco would be an improvement over application/x.draco.

Thanks!

@FrankGalligan
Copy link
Collaborator

Hi @william-silversmith,

Are you talking about putting Draco in a glTF file?

@william-silversmith
Copy link
Author

william-silversmith commented Apr 25, 2022 via email

@FrankGalligan
Copy link
Collaborator

@william-silversmith So you uploaded .drc files? Or glTF files encoded with Draco?

@william-silversmith
Copy link
Author

These were files encoded using https://github.com/seung-lab/DracoPy, which is a wrapper around the C++ draco codec. I believe that means they are .drc files though there is no .drc extension.

@FrankGalligan
Copy link
Collaborator

FrankGalligan commented Apr 27, 2022

OK thanks. Yeah it looks like DracoPy is just creating Draco compressed files. I.e. .drc files, not glTF Draco files.

We can look into registering the mimetype, especially if more people are creating Draco compressed files. Though I think the server will need them to be named "*.drc" in order for the server to send the correct mime type in the future.

@william-silversmith
Copy link
Author

Thanks Frank! Fwiw, I manually set the "Content-Type" field so the filename extension will have no impact on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants