Read Content type from cached and uploaded file.