Currently as an ad-hoc solution media type is inferred from the file extension #230 , we should have a better approach in place going forward and before that we should probably discuss the standard package format.
One of the options is to interpret the magic bytes