Attachment_Fu and CloudFront
Reported by devender.gollapally (at gmail) | November 21st, 2009 @ 07:26 AM
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.
Comments and changes to this ticket
-
Matt Darby November 21st, 2009 @ 09:59 AM
- 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...
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
A Ruby on Rails plugin that streamlines interaction with Scribd.com’s iPaper service, and works along side of either Attachment_fu or Paperclip.