jwagener/httmultiparty — pull request #20 by paracycle (2013-04-10 14:12:20+00:00)
Title: Adding support for detecting mime-types of files to be uploaded.

The current behaviour of httmultiparty is to upload all file-types with content type "application/octet-stream". This causes problems with endpoints that expect uploads with certain types (eg. picture uploads).

This pull request add the ability to detect mime types using the mimemagic library. 2 test cases and 2 fixture files are included to verify new functionality.