Read Content type from cached and uploaded file.
Merge pull request #1245 from klacointe/content_type

Read Content type from cached and uploaded file.