KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
There are many libraries and utilities for trying to guess a file's MIME type from content, rather than simply using file name extensions. While some libraries simply take an open file handle, others expect to be passed actual data. When passing data to a library, how many bytes are required to obtain an accurate MIME type? Alternatively, at what point are you passing in extra information for no gain in reliability?
Tags (comma-separated)
Save Edits
Cancel