dwilkie/carrierwave_direct — pull request #8 by mattfawcett (2011-11-24 14:58:57+00:00)
Title: Allow custom field for policy

Hi

I'm using the plugin with uploadify, which (unless you configure it to) does not include a field called `utf8` but does send some additional fields that I have no control over (`folder` and `filename`). These fields when included, cause S3 to error because they are not defined in the policy.

My change allows you to pass an option `:ignore_fields ` to the `policy` and `signature` methods, that will define additional fields in the policy. By default the array of ignored fields is just `[:utf8]` to support a standard Rails form.