thoughtbot/paperclip — pull request #1065 by rfc2822 (2012-10-30 15:58:07+00:00)
Title: Allow UploadedFileAdapter to detect file type server-side

Please include this patch because it's really important for me that the server detected the content type. I can't trust the browser Content-Type because there I use file types that are not even known to most browsers. I tried to make a high-quality pull request, including documentation and tests. If you need something else, please contact me via Github and don't just ignore the pull request.

* introduce UploadedFileAdapter::options

* UploadedFileAdapter::options[:trust_mime_type] defines whether to
trust the UploadedFile content_type or to detect it using ContentTypeDetector