support filepaths to .contentType()