Topic: Paperclip validates_attachment_content_type not working?

Hi,

I'm using the paperclip gem to upload photos.
I'm trying to use the content-type validator in my photo-model but it's not working.
Photo upload with just the file-size validator works.

Also I'm using Uploadify to do the actual uploading.

What could this be?
Here's my code:
http://pastebin.com/1nGfgmtN

Thanks,
Mathew

Last edited by mattyh88 (2011-03-17 11:42:37)

Re: Paperclip validates_attachment_content_type not working?

Try this:

validates_attachment_content_type :photo, :content_type => [ /^image\/(?:jpeg|gif|png)$/, nil ]