On Jun 9, 6:18 pm, Dharmdip Rathod
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi ,
> i am uploading files using attachment_fu ,i can upload files with
> extension .txt, .xls, .doc but when i am going to upload .pdf extension
> file i gives
>
> Validation failed: Content type is not included in the list
What is the content type that is getting submitted ?
Fred>
> error.
>
> My model file code is here .
>
> class Model< ActiveRecord::Base
>
> has_attachment :content_type
=>[''application/pdf'',''application
>
/msword'',''application/vnd.ms-excel'',''text/plain''],
> :storage => :file_system,
> :size => 0.kilobytes..10000.kilobytes
> validates_as_attachment
> end
>
> Is there any issue for attachment_fu or anything else ?
> --
> Posted viahttp://www.ruby-forum.com/.