-
Notifications
You must be signed in to change notification settings - Fork 470
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
What's the correct way to determine content type? #388
Comments
This question came up again when working on some internal details of the ion platform. I had a case where I wanted to download files from a tileset for comparison, following external tileset links. This leads to questionable code since I either make assumptions about filenames or have to download large files just to check the first couple of bytes. @mramato suggested this solution in another issue:
|
Other thoughts:
|
Sticking to the word from the quote of this issue (that is still in the specs now, 4 years later), the sentence
should probably have been reworded. On a technical level, there are different options for determining the content type, roughly:
So the options are
A related discussion is in KhronosGroup/glTF#1966 , and the conclusion is that a specification can make recommendations or suggestions, but it's nearly impossible to specify a certain runtime behavior. OK to close this? |
The spec says:
https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/specification#file-extensions-and-mime-types
These two sentences seem contradictory to me. If the file extension is option, then a valid implementation must use the magic field, right?
The text was updated successfully, but these errors were encountered: