websymphony/Rails3-Paperclip-Uploadify — Issue #3: mime type return array
Author: mikezaby
Created: 2012-02-17 00:43:44+00:00
State: open

At Rails3-Paperclip-Uploadify / app / controllers / uploads_controller.rb in line 87
``` h[:upload][:photo].content_type = MIME::Types.type_for(h[:upload][:photo].original_filename).to_s ```
That return array like this [image/jpeg] and the validation in model (if u have) they dont recognize it.
The correct is something like this:
```h[:upload][:photo].content_type = MIME::Types.type_for(h[:upload][:photo].original_filename).first.to_s```