I am using has_attachment :content_type => [:image, ''application/pdf'', ''application/msword'', ''text/plain'', ''application/rtf''], :storage => :file_system, :path_prefix => ''public/files/documents'' it''s fine for all image types, word doc, rtf, or txt , but I cannot upload pdf type documents... is any wrong in it ? thanks .. kad -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Kad Kerforn wrote:> I am using > > has_attachment :content_type => [:image, ''application/pdf'', > ''application/msword'', ''text/plain'', ''application/rtf''], :storage => > :file_system, :path_prefix => ''public/files/documents'' > > it''s fine for all image types, word doc, rtf, or txt , but I cannot > upload pdf type documents... > > is any wrong in it ? thanks .. > > kadif I get rid of the validates_as_attachement #validates_as_attachment it''s ok , so it''s seems to be a validation problem ... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 8/27/07, Kad Kerforn <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Kad Kerforn wrote: > > I am using > > > > has_attachment :content_type => [:image, ''application/pdf'', > > ''application/msword'', ''text/plain'', ''application/rtf''], :storage => > > :file_system, :path_prefix => ''public/files/documents'' > > > > it''s fine for all image types, word doc, rtf, or txt , but I cannot > > upload pdf type documents... > > > > is any wrong in it ? thanks .. > > > > kad > > if I get rid of the validates_as_attachement > > #validates_as_attachment > > it''s ok , so it''s seems to be a validation problem ... > --what is the validation error message that attachment_fu is giving you? Adam --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---