Thanks, got it working! Thanks a lot.
On Wed, Nov 5, 2008 at 9:30 PM, Bruno Bornsztein <[EMAIL PROTECTED] > wrote: > Yeah, basically you'll want to override the full_filename method for > photo.rb. > > If you look in file_system_backend.rb, you can see that full_filename uses > a method called 'partitioned_path', which is not used in the > full_filenamemethod of > s3_backend.rb > > This is because on the filesystem, attachment_fu tries to prevent creating > a directory with too many files in it, while this is not a concern on s3. > > Hope that helps, > Bruno > > > > > On Tue, Nov 4, 2008 at 12:41 PM, Sachin <[EMAIL PROTECTED]> wrote: > >> >> I was using file system storage for photos. >> >> I moved the photos directory as is to amazon s3. >> Configured amazon-s3.yml >> >> Was able to add a photo in s3 mode . >> >> The issue is - >> The directory structure for photos was ..photos/0000/<photo_id>/ >> <filename>in filesystem mode. >> >> While in s3 mode - its ..photos/<photo_id>/<filename> >> >> How can I rectify the difference in path. >> Is there a way to set path prefix? >> >> Thanks. >> >> > > > > -- Sachin Kale --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~----------~----~----~----~------~----~------~--~---
