technoweenie / attachment_fu

Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.
http://weblog.techno-weenie.net
MIT License
1.02k stars 339 forks source link

Cannot upload file from ActionController::TestUploadedFile in JRuby #21

Closed sprite2005 closed 14 years ago

sprite2005 commented 14 years ago

See this gist http://gist.github.com/473168

technoweenie commented 14 years ago

Is uploaded_data being called? http://github.com/technoweenie/attachment_fu/blob/master/lib/technoweenie/attachment_fu.rb#L337-354

I'd probably start with some puts debugging there. See if it's being called, and if so, how far it gets before silently failing.

sprite2005 commented 14 years ago

Please close this issue. My app is based on Community Engine and one of their initializers break attachment_fu under JRuby: http://github.com/bborn/communityengine/blob/master/config/initializers/attachment_fu_patch.rb I will let them know. Thanks.

technoweenie commented 14 years ago

Rad :)