Auto-detecting upload mime-type when set to "application/octet-stream".

Resolves #63.