Maybe in the future we can use something like node-mime
https://github.com/broofa/node-mime