Fix issues uploading a file with an unknown mime-type

With the included patch I am now able to upload and download a simple npm-debug.log file.

Fixes #79