Tuesday, January 29, 2008

attachment_fu size




If you get the error message


Validation failed: Size is not included in the list


when using attachment_fu with Rails, check to see if your file is perhaps larger than the max_size you have set, it defaults to a fairly low value:


has_attachment :content_type => 'application/pdf',
:max_size => 20.megabytes,
:storage => :file_system