Guess mime type when PUTing attachment