Thursday, March 17, 2011

[Rails] 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...@gmail.com> 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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate