Auto detect content type based on file content and file name if content type is not set.

This detection is provided by Apache Tika and may not always be accurate.