Default the file type to octetstream when unspecified

In the case where the host browser cannot deduce the file type, the default value of the content-type should be application/octet-stream, otherwise the request may end up with an invalid Content-Type header.