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. What could this be? Here''s my code: http://pastebin.com/1nGfgmtN Thanks, Mathew -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
mattyh88
2011-Mar-17 15:41 UTC
Re: Paperclip validates_attachment_content_type not working?
Apparently it has to do with ''uploadify'' using another content type. Still looking how to whitelist the image content types Grts, Mathew On Mar 17, 2:41 pm, mattyh88 <mathew.hu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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. > > What could this be? > Here''s my code:http://pastebin.com/1nGfgmtN > > Thanks, > Mathew-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.