add primitive fn for extract file extension
thread mime types through
infer mime type