When possible, guess the content-type of the file being sent.

This is a workaround/fix for #271 that should work (or can make it work) in most cases, without having to come up with a specialized syntax for specifying a custom content type.