Prevent Content Type Spoofing on Paperclip

If you have ever used paperclip, maybe you have seen the message like that: Image has contents that are not what they are reported to be. For this bug, we will have two solutions: specify an extension that cannot otherwise be mapped or override media_type_spoof_detector method.

October 3, 2016 · 2 min · 221 words · Bá Tới