Has_attachment plugin : upload pdf?

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

Kad K. 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 …

On 8/27/07, Kad K. [email protected] wrote:

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs