Here is how I have it setup but this worked fine before for any type
of filetype. Did something change in the Paperclip plugin? I want to
be able to have an asset that can be either image or audio or video,
and I deal with it based on content-type later.
has_attached_file :data,
:styles => { :medium => "307x", :small =>
"73x52#" },
:url => "/system/
assets/:id/:style_:basename.:extension",
:path => ":rails_root/public/system/
assets/:id/:style_:basename.:extension"
validates_presence_of :title, :description, :artist_id, :message
=> "can't be blank"
validates_attachment_presence :data
validates_attachment_content_type :data, :content_type => ["image/
jpeg", "image/pjpeg", "application/x-octet-stream", "application/octet-
stream", "video/x-flv", "flv-application/octet-stream", "audio/mpeg",
"audio/x-m4a", "audio/mp3", "audio/x-mp3"], :message => "must be in
the correct format"