rlightbox2
rlightbox2 copied to clipboard
Breaking when using with amazon s3 storage bucket
I am using rlightbox with a rails 3.1 app and carrierwave (a file upload gem I am using for photos). When I used carrierwave with local file storage in development, rlightbox works perfectly. However, when I configure my app to use s3 via the fog gem for photo storage, the rlightbox plugin stops working. Here is a sample url for the image: https://s3.amazonaws.com/reelifybucket/uploads/photo/image/5/IMG_3588.jpg?AWSAccessKeyId=AKIAIXELQYQOCA7YEYTA&Signature=YLoH6k2woxWx002OdNZ4CjDvti0%3D&Expires=1333054968
Really lost as to what the issue is and would appreciate any help! Thanks. Kevin
I was able to find the issue.. rlightbox was looking for a file that ended in .jpg, .png or .gif so amazon tacking on the access key info was causing it to break. I fixed the regular expression so that it is friendly with s3 and am submitting a pull request!
Thanks!