Default the file type to octetstream when unspecified
Merge pull request #2769 from francoisjacques/xhr_defaultContentType

Default the file type to octetstream when unspecified