Fix issue cannot get content type of file