Guess content type

Guess content type for posting files, just like what urllib3 does.