Displaying 1 result from an estimated 1 matches for "sthreefil".
Did you mean:
sthreefile
2010 Apr 03
0
Change from attachment_fu db BLOB to Paperclip S3
Hi:
I have moved from using attachment_fu with files stored in the DB to
Paperclip using S3. The trick now is to migrate the files from the DB
to S3.
I have tried a few methods like:
SThreeFile.create(:file => AttachmentFuFile.first.data)
and
@attachment = AttachmentFuFile.first
SThreeFile.create(:file => ActionController::Streaming.send_data
@attachment.data, :filename => @attachment.name, :type =>
@attachment.content_type)
The first gives lots of output to the console b...