jwagener/httmultiparty — pull request #37 by boxofrad (2014-08-19 09:34:46+00:00)
Title: Fix a bug where files in nested parameter hashes wouldn't be converted to instances of UploadIO

This PR fixes a bug where files in nested hashes wouldn't be uploaded, and instead you'd get something like this in the HTTP body:

```
-------------RubyMultipartPost
Content-Disposition: form-data; name="upload_file[data][file]=#"
```

My use case:

```ruby
MyAPI.create({
subject: 'Passport Image',
upload_file: {
data: {
file: File.open('/Users/daniel/Desktop/bart-simpson.jpg'),
file_name: 'bart.jpg'
}
}
})
```

Have at it! :sparkling_heart: