Paperclip content_type validation

108 Views Asked by At

Is there a way to validate files based on content and not on extension in paperclip. If I rename a .dll file to .png and upload it. It passes the content_type validation but fails saying xxx.png is not recognized by the 'identify' command. Is there any way to get around this?

0

There are 0 best solutions below