Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Attachment_Fu and CloudFront

#6

When using attachment_fu, you can also enable the Amazon CloudFront option (CloudFront is Amazon's CDN) and files will be distributed using CloudFront instead of downloading from S3.

When this option is enabled, the file's public name will be something http://.cloudfront.net instead of the regular https://s3.amazonaws.com and breaks the pattern matcher in lib/scribd_fu/attachment_fu.rb#file_path.

I made a small change and added support to match both CloudFront and S3, attached is the diff file and tested it locally. Please review.

I would really appreciate if you can merge it in and release a new version.

Reported by devender.gollapally (at gmail) · November 21st, 2009 @ 07:26 AM

State: resolved
Milestone: none
Assigned to: Matt Darby Matt Darby

Activity

  1. Matt Darby
    Matt Darby
    • State changed from new to resolved

    Cool, thanks for the patch. I've merged and pushed out 2.0.7. Here's the commit:
    http://github.com/mdarby/scribd_fu/commit/b9eb722ac68d5fa966e3562a9...

    November 21st, 2009 @ 09:59 AM

  2. devender.gollapally (at gmail)

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.